Scenario PracticeAmazon Web Services · DVA-C02

DVA-C02 Which Command Should the Administrator Use Practice Questions

Practise command-choice questions where the task is to identify the correct verification, configuration or troubleshooting command.

Start Scenario Practice

Common Traps on Which Command Should the Administrator Use Practice Questions

  • ·Separate verification commands from configuration commands.
  • ·Read whether the question asks to identify, verify, fix, permit or deny.
  • ·Small command keywords often change the correct answer.

Sample Questions

Practice all 15
1.

A developer is troubleshooting an AWS Lambda function that processes large CSV files (up to 1 GB) uploaded to an Amazon S3 bucket. The function uses Python and the pandas library to perform data transformations. Recently, the function started timing out on large files. CloudWatch Logs show that the function's execution time is close to the 15-minute Lambda timeout, and memory utilization peaks at around 80% of the configured 3,008 MB. The function has not been modified in months. Which action will most likely resolve the timeout issue without requiring code changes?

Explanation: Lambda's performance scales with memory allocation: more memory also provides proportional CPU power. For CPU-bound tasks like pandas processing, increasing memory reduces execution time significantly. The function is not memory-constrained (only 80% used), but by increasing memory, the function gets more CPU, which speeds up the processing. The timeout is already at the maximum (15 minutes), so increasing it further is not possible. Using S3 Select would reduce the data read, but that requires code changes to use S3 Select API. Increasing the batch size of the S3 event notification is irrelevant; the function processes one file per invocation.

2.

A developer is troubleshooting an AWS Lambda function that experiences high latency for the first few invocations after being idle. The function is written in Python and uses a large library (e.g., Pandas). The function connects to an RDS database in a VPC. What is the most effective way to reduce the latency for the first invocation after idle?

Explanation: Lambda cold starts occur when the function is invoked after being idle, requiring initialization of the runtime and dependencies. Provisioned concurrency keeps a specified number of execution environments initialized and ready to respond immediately, eliminating cold start latency for those environments. Increasing memory can improve CPU performance but does not eliminate the initialization overhead. Lambda layers and moving to DynamoDB do not directly address cold starts.

3.

A developer is troubleshooting an AWS Lambda function that is triggered by an S3 event. The function occasionally fails with a timeout error. CloudWatch logs show that the timeout occurs during the processing of large files. The function has a memory setting of 128 MB and a timeout of 3 seconds. The developer wants to process large files without modifying the code. Which parameter should the developer adjust first?

Explanation: Increasing the memory allocation for a Lambda function also increases its CPU allocation, which can significantly speed up processing. This may allow the function to complete within the existing timeout. While increasing the timeout may also help, adjusting memory first is more effective because it directly addresses the root cause (slow processing). Increasing concurrency does not affect a single invocation, and batch size is not applicable to S3 event triggers.

4.

A developer notices that an AWS Lambda function, configured to access an Amazon RDS database in the same VPC, is timing out. The function has a 30-second timeout. CloudWatch Logs show that the function starts execution but never reaches the database. The VPC configuration includes private subnets without a NAT gateway. The RDS database is in the same VPC. What is the most likely cause of the timeout?

Explanation: Lambda functions in a VPC require security group rules to allow outbound traffic to the RDS database and inbound traffic from the Lambda function. If the security group of the RDS database does not allow inbound connections from the Lambda function's security group, the connection will time out. Since the database is in the same VPC, a NAT gateway is not needed for connectivity. DNS resolution works within the VPC.

5.

A developer deployed an AWS Lambda function that is invoked by an Amazon SQS queue. The function is configured with a batch size of 10 and a timeout of 30 seconds. CloudWatch metrics show that the function's Duration is consistently around 28 seconds, but occasionally spikes to 35 seconds causing timeouts. The function makes a synchronous HTTP call to an external API. Which approach will MOST effectively prevent timeouts while maximizing throughput?

Explanation: The function's timeout is 30 seconds, and synchronous HTTP calls can take variable time. By using asynchronous HTTP calls, the function can initiate multiple requests concurrently and wait for all responses, reducing the total wall clock time. This allows processing more messages within the timeout, maximizing throughput. Increasing the timeout is possible but does not address the underlying latency and may hide issues. Reducing the batch size reduces throughput. Changing the SQS visibility timeout does not affect the Lambda function's execution timeout.

Related Topics

command output questionstroubleshootingconfiguration questions

Frequently asked questions

How do "Which Command Should the Administrator Use Practice Questions" appear on the real DVA-C02?

Practise command-choice questions where the task is to identify the correct verification, configuration or troubleshooting command. These appear throughout the DVA-C02 and require you to apply your knowledge, not just recall facts.

How many scenario questions are on the DVA-C02 exam?

Cisco doesn't publish an exact breakdown, but scenario-based questions (especially exhibit and command-output formats) make up a significant portion of the DVA-C02. Practicing each scenario type ensures you're ready for any format.

Are these DVA-C02 scenario practice questions free?

Yes — all scenario practice on Courseiva is completely free. Sign up for a free account to track your progress and see which scenario types you've mastered.

Ready to practice this scenario type?

Launch a full Which Command Should the Administrator Use Practice Questions session with instant scoring and detailed explanations.

Start Scenario Practice →