PracticeCF

SAP-C02 Question Bank · Latest 50 Questions Free Preview (Page 3/5)

Questions 21–30 of the latest 50 SAP-C02 questions (5 pages total), with answers and explanations, no login required. Practice all 1519 questions online.

Question 21 · No. 1493 · Single choice

A company runs an ecommerce web application on AWS. The web application is hosted as a static website on Amazon S3 with Amazon CloudFront for content delivery. An Amazon API Gateway API invokes AWS Lambda functions to handle user requests and order processing for the web application The Lambda functions store data in an Amazon ROS for MySQL DB cluster that uses On-Demand instances. The DB cluster usage has been consistent in the past 12 months. Recently, the website has experienced SQL injection and web exploit attempts. Customers also report that order processing time has increased during periods of peak usage. During these periods, the Lambda functions often have cold starts. As the company grows, the company needs to ensure scalability and low-latency access during traffic peaks. The company also must optimize the database costs and add protection against the SQL injection and web exploit attempts. Which solution will meet these requirements?

Answer: D

Question 22 · No. 1494 · Single choice

A company runs a web application on a single Amazon EC2 instance. End users experience slow application performance during times of peak usage, when CPU utilization is consistently more than 95%. A user data script installs required custom packages on the EC2 instance. The process of launching the instance takes several minutes. The company is creating an Auto Scaling group that has mixed instance groups, varied CPUs, and a maximum capacity limit. The Auto Scaling group will use a launch template for various configuration options. The company needs to decrease application latency when new instances are launched during auto scaling. Which solution will meet these requirements?

Answer: D

Explanation: The company needs to decrease application latency when new instances are launched during auto scaling. A dynamic scaling policy is more suitable for handling peak usage times compared to predictive scaling, as it reacts to actual demand changes. Enabling warm pools in the Auto Scaling group helps to keep a pool of pre-warmed instances ready to serve traffic immediately, reducing latency. Using lifecycle hooks to run the user data script ensures that the required custom packages are installed before the instances start receiving traffic.
Question 23 · No. 1495 · Multiple choice

A company is migrating its on-premises IoT platform to AWS. The platform consists of the following components: • A MongoDB cluster as a data store for all collected and processed IoT data. • An application that uses Message Queuing Telemetry Transport (MQTT) to connect to IoT devices every 5 minutes to collect data. • An application that runs jobs periodically to generate reports from the IoT data. The jobs take 120-600 seconds to finish running. • A web application that runs on a web server. End users use the web application to generate reports that are accessible to the general public. The company needs to migrate the platform to AWS to reduce operational overhead while maintaining performance. Which combination of steps will meet these requirements with the LEAST operational overhead? (Choose three.)

Answer: A, D, E

Explanation: 选项D通过将IoT设备连接到AWS IoT Core并配置规则来调用Lambda函数处理、转换并存储数据到数据存储,减少了操作开销并保持了性能。选项E通过将MongoDB集群迁移到与MongoDB兼容的Amazon DocumentDB,简化了数据库运维并提供了云原生的优势。选项A使用AWS Step Functions和Lambda任务来准备和写入S3中的报告,并通过CloudFront分发,这优化了报告生成与分发流程,降低了运营负担。
Question 24 · No. 1496 · Multiple choice

A company has several AWS Lambda functions written in Python. The functions are deployed with the .zip package deployment type. The functions use a Lambda layer that contains common libraries and packages in a .zip file. The Lambda .zip packages and Lambda layer .zip file are stored in an Amazon S3 bucket. The company must implement automatic scanning of the Lambda functions and the Lambda layer to identify CVEs. A subset of the Lambda functions must receive automated code scans to detect potential data leaks and other vulnerabilities. The code scans must occur only for selected Lambda functions, not all the Lambda functions. Which combination of actions will meet these requirements? (Choose three.)

Answer: A, B, E

Question 25 · No. 1497 · Single choice

A company has deployed applications to thousands of Amazon EC2 instances in an AWS account. A security audit discovers that several unencrypted Amazon Elastic Block Store (Amazon EBS) volumes are attached to the EC2 instances. The company’s security policy requires the EBS volumes to be encrypted. The company needs to implement an automated solution to encrypt the EBS volumes. The solution also must prevent development teams from creating unencrypted EBS volumes. Which solution will meet these requirements?

Answer: D

Explanation: Option D is the best solution because it addresses both requirements: identifying and automatically remediating unencrypted EBS volumes using AWS Config managed rule and its automatic remediation action with an associated Systems Manager Automation runbook, and preventing the creation of new unencrypted EBS volumes by modifying the AWS account setting for EBS encryption to always encrypt new volumes.
Question 26 · No. 1498 · Multiple choice

A company operates a static content distribution platform that serves customers globally. The customers consume content from their own AWS accounts. The company serves its content from an Amazon S3 bucket. The company uploads the content from its on-premises environment to the S3 bucket by using an S3 File Gateway. The company wants to improve the platform’s performance and reliability by serving content from the AWS Region that is geographically closest to customers. The company must route the on-premises data to Amazon S3 with minimal latency and without public internet exposure. Which combination of steps will meet these requirements with the LEAST operational overhead? (Choose two.)

Answer: A, E

Question 27 · No. 1499 · Multiple choice

An events company runs a ticketing platform on AWS. The company’s customers configure and schedule their events on the platform. The events result in large increases of traffic to the platform. The company knows the date and time of each customer’s events. The company runs the platform on an Amazon Elastic Container Service (Amazon ECS) cluster. The ECS cluster consists of Amazon EC2 On-Demand Instances that are in an Auto Scaling group. The Auto Scaling group uses a predictive scaling policy. The ECS cluster makes frequent requests to an Amazon S3 bucket to download ticket assets. The ECS cluster and the S3 bucket are in the same AWS Region and the same AWS account. Traffic between the ECS cluster and the S3 bucket flows across a NAT gateway. The company needs to optimize the cost of the platform without decreasing the platform's availability. Which combination of steps will meet these requirements? (Choose two.)

Answer: A, E

Question 28 · No. 1500 · Single choice

A company is running several applications in the AWS Cloud. The applications are specific to separate business units in the company. The company is running the components of the applications in several AWS accounts that are in an organization in AWS Organizations. Every cloud resource in the company’s organization has a tag that is named BusinessUnit. Every tag already has the appropriate value of the business unit name. The company needs to allocate its cloud costs to different business units. The company also needs to visualize the cloud costs for each business unit. Which solution will meet these requirements?

Answer: A

Explanation: The best solution is A because it centralizes the cost allocation tagging and reporting in the management account, which simplifies administration and provides a unified view across all business units. Creating a cost allocation tag named 'BusinessUnit' in the management account leverages existing tags without duplication. Using Amazon S3 to store AWS Cost and Usage Reports (AWS CUR) and querying this data with Amazon Athena enables detailed analysis. Amazon QuickSight integration offers advanced visualization capabilities for effectively presenting the cost breakdown per business unit.
Question 29 · No. 1501 · Multiple choice

A company has an application that stores user-uploaded videos in an Amazon S3 bucket that uses S3 Standard storage. Users access the videos frequently in the first 180 days after the videos are uploaded. Access after 180 days is rare. Named users and anonymous users access the videos. Most of the videos are more than 100 MB in size. Users often have poor internet connectivity when they upload videos, resulting in failed uploads. The company uses multipart uploads for the videos. A solutions architect needs to optimize the S3 costs of the application. Which combination of actions will meet these requirements? (Choose two.)

Answer: C, E

Question 30 · No. 1502 · Single choice

A company is hosting an application on AWS for a project that will run for the next 3 years. The application consists of 20 Amazon EC2 On-Demand Instances that are registered in a target group for a Network Load Balancer (NLB). The instances are spread across two Availability Zones. The application is stateless and runs 24 hours a day, 7 days a week. The company receives reports from users who are experiencing slow responses from the application. Performance metrics show that the instances are at 10% CPU utilization during normal application use. However, the CPU utilization increases to 100% at busy times, which typically last for a few hours. The company needs a new architecture to resolve the problem of slow responses from the application. Which solution will meet these requirements MOST cost-effectively?

Answer: D

Explanation: Option D is the most cost-effective solution because it uses Auto Scaling to dynamically adjust the number of instances based on demand, which will address the issue of slow responses during busy times without over-provisioning resources. By setting the minimum capacity to 4 and the maximum capacity to 28, the company ensures that there are always enough instances to handle base load while being able to scale up efficiently during peak times. Purchasing Reserved Instances for four instances further reduces costs for the baseline capacity needed. Options A, B, and C either do not provide as efficient scaling or involve more expensive setups (like using Spot Instances as the primary capacity in option B or replacing the NLB unnecessarily in option C).
Prev 12345 Next