exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 55 discussion

Actual exam question from CompTIA's CAS-004
Question #: 55
Topic #: 1
[All CAS-004 Questions]

Clients are reporting slowness when attempting to access a series of load-balanced APIs that do not require authentication. The servers that host the APIs are showing heavy CPU utilization. No alerts are found on the WAFs sitting in front of the APIs.
Which of the following should a security engineer recommend to BEST remedy the performance issues in a timely manner?

  • A. Implement rate limiting on the API.
  • B. Implement geoblocking on the WAF.
  • C. Implement OAuth 2.0 on the API.
  • D. Implement input validation on the API.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
javier051977
Highly Voted 2 years, 1 month ago
Selected Answer: A
Since the clients are reporting slowness and the servers hosting the APIs are showing heavy CPU utilization, it is likely that the performance issue is caused by excessive API requests being made by the clients, rather than an attack or vulnerability that needs to be mitigated. Therefore, the best solution to remedy the performance issues would be to implement rate limiting on the API, which would limit the number of requests made to the APIs per client, and prevent excessive requests from overloading the servers. So, the correct answer is A. Implement rate limiting on the API.
upvoted 14 times
...
[Removed]
Highly Voted 2 years, 10 months ago
Selected Answer: C
Keyword here is that the API does not require authentication. OAUTH 2.0 solves that and will improve performance by only processing authenticated calls.
upvoted 13 times
...
salmonIsDecent
Most Recent 7 months ago
Selected Answer: A
Voted for A. Rationale: Key phrase for me that stood out in the question is: "remedy the performance issues in a timely manner." My mind was telling me to already ignore B & C and look at A and D. D - Implement input validation would have taken a lot longer in terms of time to reduce the heavy CPU utilization. This would have required testing the code and validating it through a code development lifecycle.
upvoted 3 times
...
IT_Master_Tech
8 months, 3 weeks ago
To me the key words here are "remedy performance issues", so A. is the only one that makes sense.
upvoted 1 times
...
23169fd
9 months, 4 weeks ago
Selected Answer: A
This approach controls the number of requests a client can make to the API within a certain timeframe. By limiting the request rate, you can prevent excessive usage from any single client or group of clients, which can help reduce the CPU load on the servers. This can be implemented relatively quickly and can provide immediate relief to the performance issues. Implementing OAuth 2.0 is used for authentication and authorization, which is not necessary for APIs that do not require authentication. Moreover, adding OAuth 2.0 can increase complexity and may not directly address the root cause of the CPU utilization issue.
upvoted 3 times
...
ElDirec
1 year, 3 months ago
Selected Answer: A
In this case, since the servers are showing heavy CPU utilization, implementing rate limiting can help manage the load on the servers and improve performance1. However, it’s also important to consider other performance optimization techniques and security measures to ensure the overall health and efficiency of the API2
upvoted 1 times
...
Anarckii
1 year, 4 months ago
Selected Answer: A
we want to focus on the utilization
upvoted 1 times
...
OdinAtlasSteel
1 year, 5 months ago
Selected Answer: A
Implement Rate Limiting: Rate limiting involves controlling the rate at which incoming requests are processed. By implementing rate limiting on the API, the system can restrict the number of requests from a single client or IP address within a specified time period. This can help mitigate the impact of excessive requests, prevent abuse, and alleviate the heavy CPU utilization on the servers. OAuth 2.0 is an authentication and authorization framework, and implementing it on the API may not directly address the reported performance issues unless authentication overhead is a significant factor, which is not mentioned in the scenario.
upvoted 1 times
...
32d799a
1 year, 7 months ago
Selected Answer: C
The answer is C - great security issue the authentication.
upvoted 1 times
...
POWNED
1 year, 7 months ago
Selected Answer: C
Authentication! answer is C
upvoted 2 times
...
Mr214
1 year, 8 months ago
Selected Answer: A
OAUTH 2.0 will just increase the load on the API Rate limiting shall reduce the number of processed requests
upvoted 3 times
...
Alex_2169
1 year, 9 months ago
Chat GPT is not as accurate he changes his answer & is unsure of his answers be careful
upvoted 5 times
...
BiteSize
1 year, 9 months ago
Selected Answer: A
OAuth does not mean that it will be secure because OAuth=Authorization rate limiting is the quick fix to address the direct problem of too many tasks. Source: Verifying each answer against Chat GPT, my experience, other test banks, a written book, and weighing in the discussion from all users to create a 100% accurate guide for myself before I take the exam. (It isn't easy because of the time needed, but it is doing my diligence)
upvoted 5 times
...
AaronS1990
1 year, 11 months ago
For me this is C C means that they will only process authenticated calls. I see the argument for A however my i don't think it's right. The loads are balanced therefore the system itself is running as efficiently as it can and yet you are still getting performance issues. Limiting them further will not improve performace. However ensuring that there is less unnecerssary traffic will. That's why i'm going with C
upvoted 2 times
...
CASP_Master
1 year, 12 months ago
Given that the APIs do not require authentication, implementing OAuth 2.0 would likely not resolve the performance issues. Similarly, implementing input validation would not necessarily address the CPU utilization. Geoblocking may prevent some traffic, but may not resolve the root cause of the issue. Therefore, the BEST recommendation would be to implement rate limiting on the API, which can help regulate the amount of traffic and reduce the load on the servers. This would help address the performance issues in a timely manner.
upvoted 3 times
...
p1s3c
2 years ago
A. Implementing rate limiting on the API is the best solution to remedy the performance issues in a timely manner. Rate limiting can help mitigate the heavy CPU utilization and ensure that the APIs are not overwhelmed with requests, which can cause slowness for clients. It limits the number of requests that can be made within a certain time period, preventing excessive traffic from consuming all of the server's resources. Geoblocking (B) may be useful for blocking traffic from certain countries, but it is unlikely to solve the performance issue in this scenario. OAuth 2.0 (C) is an authentication and authorization framework and would not address the performance issues described. Input validation (D) is important for preventing attacks that leverage malicious input, but it is not likely to address the performance issues in this scenario.
upvoted 3 times
...
last_resort
2 years ago
Selected Answer: A
A. Rate limiting. This is a tough one. I think we can rule out OAuth, as it says that the API does not require authentication (so why add it?) and OAuth will be more difficult to implement than rate limiting. They asked for a quick fix. https://nordicapis.com/everything-you-need-to-know-about-api-rate-limiting/
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago