exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 201 discussion

A company recently deployed its web application on AWS. The company is preparing for a large-scale sales event and must ensure that the web application can scale to meet the demand.

The application's frontend infrastructure includes an Amazon CloudFront distribution that has an Amazon S3 bucket as an origin. The backend infrastructure includes an Amazon API Gateway API, several AWS Lambda functions, and an Amazon Aurora DB cluster.

The company's DevOps engineer conducts a load test and identifies that the Lambda functions can fulfil the peak number of requests. However, the DevOps engineer notices request latency during the initial burst of requests. Most of the requests to the Lambda functions produce queries to the database. A large portion of the invocation time is used to establish database connections.

Which combination of steps will provide the application with the required scalability? (Choose three.)

  • A. Configure a higher reserved concurrency for the Lambda functions.
  • B. Configure a higher provisioned concurrency for the Lambda functions.
  • C. Convert the DB cluster to an Aurora global database. Add additional Aurora Replicas in AWS Regions based on the locations of the company's customers.
  • D. Refactor the Lambda functions. Move the code blocks that initialize database connections into the function handlers.
  • F. Use Amazon RDS Proxy to create a proxy for the Aurora database. Update the Lambda functions to use the proxy endpoints for database connections.
Show Suggested Answer Hide Answer
Suggested Answer: BCF 🗳️

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
WhyIronMan
Highly Voted 10 months, 1 week ago
Selected Answer: BCF
A. this doesn't directly address the database connection issue and there will be moments were you will be not using it, so spending money B. correct, Configure a higher provisioned concurrency for the Lambda functions: This ensures that Lambda instances are ready to handle bursts of traffic, reducing cold start latency. C. Is correct, if they want to read only D. is wrong because it says "... into the function handlers..." while best practices say to do it OUTSIDE the function handlers. Starting NEW CONNECTIONS is bad thing. F. Is correct, it is a best practice
upvoted 15 times
Jay_2pt0_1
9 months ago
Glad I read this. I read D wrong the first time.
upvoted 2 times
...
WhyIronMan
10 months, 1 week ago
Also, please notice that "The company's DevOps engineer conducts a load test and identifies that the Lambda functions can fulfil the peak number of requests."
upvoted 5 times
...
...
DanShone
Highly Voted 10 months, 3 weeks ago
Selected Answer: BDF
A - Provisioned concurrency – This is the number of pre-initialized execution environments allocated to your function https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html D - Initialize SDK clients and database connections outside of the function handler https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html F - RDS Proxy improves scalability by pooling and sharing database connections https://aws.amazon.com/rds/proxy/faqs/?nc=sn&loc=4
upvoted 7 times
...
Waak
Most Recent 4 days, 12 hours ago
There should be another option E) Refactor the Lambda functions. Move the code blocks that initialize database connections outside the function handlers.
upvoted 1 times
...
teo2157
1 month, 4 weeks ago
Selected Answer: BDF
DanShone provided the right links to the answers
upvoted 1 times
...
seetpt
5 months, 2 weeks ago
Selected Answer: BCF
I think BCF
upvoted 1 times
...
[Removed]
5 months, 2 weeks ago
Selected Answer: BCF
BCF for me
upvoted 2 times
...
radhi2024
5 months, 3 weeks ago
Selected Answer: BCF
B C D i correct
upvoted 3 times
...
trungtd
7 months ago
Selected Answer: BCF
The person who chose D doesn't understand Lambda at all
upvoted 3 times
...
Gomer
7 months ago
Selected Answer: BCF
A. (NO) "Lambda functions can fulfil the peak number of requests." B.(YES) "The number of pre-initialized execution environments allocated to a function. These execution environments are ready to respond immediately to incoming function requests." C.(YES) Chosen in part by process of elimination because neither "A" or "D" is correct. D. (NO) Declaratons "outside of the function's handler method remain initialized" "when the function is invoked again." "if your Lambda function establishes a database connection" "the original connection is used in subsequent invocations." F.(YES) Chosen in part by process of elimination because neither "A" or "D" is correct.
upvoted 3 times
...
dkp
9 months, 4 weeks ago
BCF B.Configure a higher provisioned concurrency for the Lambda functions: This will help in maintaining a set number of initialized Lambda instances, reducing cold starts, and providing better scalability. C. Convert the DB cluster to an Aurora global database: This will help in reducing database connection latency for global users by replicating Aurora across multiple regions. F. Use Amazon RDS Proxy to create a proxy for the Aurora database: This will manage database connections efficiently with connection pooling, reducing the time to establish new connections and improving database interaction efficiency.
upvoted 3 times
...
Ola2234
10 months, 1 week ago
BDF Option A is a waste of resources Option D is not practicable
upvoted 1 times
c3518fc
9 months, 2 weeks ago
but you choose option B
upvoted 1 times
...
...
ogerber
10 months, 3 weeks ago
ABF, 100%
upvoted 1 times
Ola2234
10 months, 1 week ago
Why would you want to configure both Reserved and Provisioned concurrency at the same time? would that not amount to a waste of resurces?
upvoted 3 times
...
...
Shasha1
11 months ago
BCF referance: https://repost.aws/knowledge-center/lambda-cold-start
upvoted 3 times
...
sejar
11 months ago
Selected Answer: ABF
D is bad pratice as mentioned here. https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html#function-code:~:text=Initialize%20SDK%20clients%20and%20database%20connections%20outside%20of%20the%20function%20handler C - unsure if that helps, if the Lambda function is not replicated to other regions.
upvoted 2 times
...
dzn
11 months ago
Selected Answer: ABF
D is bad practice in this situation. Connecting DBs in global scope and using RDS Proxy can further improve performance.
upvoted 2 times
...
kyuhuck
11 months, 3 weeks ago
Selected Answer: BDF
Configuring a higher reserved concurrency for the Lambda functions (Option A) ensures that a specific number of Lambda instances are available for your function, but it doesn't address the cold start issue as effectively as provisioned concurrency, nor does it directly address the database connection overhead. Therefore, the most effective combination of steps to provide the required scalability and address the identified issue would be Options B (Provisioned Concurrency), F (Amazon RDS Proxy), and a revised understanding of D that focuses on optimizing connection management for efficiency.
upvoted 4 times
...
kyuhuck
11 months, 3 weeks ago
Selected Answer: ABF
B. Configure a higher provisioned concurrency for the Lambda functions: This ensures that Lambda instances are ready to handle bursts of traffic, reducing cold start latency. F. Use Amazon RDS Proxy to create a proxy for the Aurora database: This directly addresses the issue of database connection overhead, significantly reducing latency by pooling and reusing connections. A. Configure a higher reserved concurrency for the Lambda functions (optional based on specific needs): While this doesn't directly address the database connection issue, it ensures that enough Lambda instances are available to handle the application load, complementing the benefits of provisioned concurrency and RDS Proxy.
upvoted 3 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