Easy ReviewDOP-C02
SDLC Automation14

App Runner

Deploy managed web services from code or images, with scaling, access controls and customer availability limits.

Este conteúdo de estudo ainda não foi traduzido, então aparece em inglês. Ajude a traduzir

App Runner builds and runs web services from a code repository or container image. It stopped accepting new customers in April 2026; existing customers can continue using it and creating services.

Web application deployment and availability

App Runner turns source code or a container imageA package containing an application and the dependencies needed to run it., a packaged application with its dependencies, into a managed web service. It handles building when needed, deploymentApplying a version of application code or an image to a running service. and scaling so the team can run a web application without provisioning its compute resources directly.

How it works

  1. Choose a GitHub or Bitbucket code repositoryA versioned source location containing application code or container images., or an ECR image. A repository stores the code or image versions. For code, select a managed runtimeA base image App Runner provides to execute an application built from source code., the base execution image, and supply build/start commands and the listening port.
  2. Choose automatic or manual deployment. Code automation watches the configured source directoryThe repository path whose changes can trigger automatic source-code deployment., which defaults to the repository root. ECR Public and cross-account ECR images require manual deployment through the console, CLI or StartDeployment.
  3. Assign an access roleThe IAM role App Runner uses to retrieve a private ECR image. for private ECR retrieval, using AWSAppRunnerServicePolicyForECRAccess and trust in build.apprunner.amazonaws.com. If application code calls AWS APIs, give its instance roleThe IAM role supplying permissions for AWS API calls made by application code. the required permissions and trust in tasks.apprunner.amazonaws.com.
  4. Set the scaling controls below. ConcurrencyThe number of requests an instance handles at the same time. means requests being handled at the same time. Provisioned instances are capacity kept ready; some can be inactive. Increasing MinSize spreads capacity across more Availability Zones, isolated locations within a Region, at higher minimum cost.
  5. Configure health checksA repeated test used to determine whether a service responds as expected.. TCP tests the listening port; HTTP requests an application path. A VPC connectorAn App Runner networking resource that routes application outbound traffic to a VPC. enables outbound access to private resources through private subnetsA VPC subnet without a direct route to an internet gateway., network ranges without a direct internet-gateway route. Incoming access is configured separately: public by default, or private through a VPC interface endpointA private connection from a VPC to a service using AWS PrivateLink. using AWS PrivateLink.
Scaling control Meaning API default
MaxConcurrency Concurrent requests per instance before scaling up 100
MinSize Minimum provisioned instances 1
MaxSize Maximum instances actively serving traffic 25

Exam cues

  • If the question says deploy code or an image with managed web-service operations, think App Runner, because it builds when needed and manages the running service.
  • If the question says a public or cross-account ECR image is not automatically redeployed, think manual deployment, because those image sources do not support automatic deployment.
  • If the question says image retrieval works but AWS API calls fail, think instance-role permissions, because image retrieval uses the separate access role.
  • If the question says an application needs a private database while keeping public callers, think outbound VPC connector, because incoming access has separate settings. For internet access after adding the connector, provide a public NAT gatewayA network resource that lets private-subnet applications reach outside services without accepting unsolicited incoming connections., which allows outbound internet connections from private subnets, or use VPC endpoints for supported AWS APIs.

Remember

  • Automatic deployment defaults to enabled for code and same-account ECR images; it defaults to disabled for ECR Public and cross-account ECR images.
  • Memory is charged for all provisioned instances. CPU usage charges apply to the active subset. Deployments temporarily double provisioned instances to maintain old and new capacity.
  • During maintenance, OPERATION_IN_PROGRESS can block management actions while the application keeps handling requests.
  • App Runner stopped accepting new customers on April 30, 2026. Existing customers can still create resources and services. AWS plans no new features and recommends exploring ECS Express Mode for migration.
Health-check setting Default
Protocol TCP
HTTP path /
Interval 5 seconds
Timeout 2 seconds
Healthy thresholdA configured number of consecutive results needed to mark a service healthy or unhealthy. 1 consecutive successful check
Unhealthy threshold 5 consecutive failed checks

Trap: A VPC connector does not make the incoming endpoint private. Configure private incoming access separately.

Trap: New-customer closure does not mean existing App Runner services shut down.

An image deployment creates the service clients call
deploy image1requests2Amazon ECRiApp RunneriWeb clienti
  1. App Runner retrieves and deploys the configured image.

  2. Clients send requests to the running service.

Detalhes das caixas (3)
Amazon ECR

The image source contains a ready-to-run application image.

App Runner

App Runner deploys the image and manages the running web service.

Web client

The client sends requests to the service endpoint.

Public incoming traffic and private database access
Private VPCpublic request1VPC connector2Web clientiApp RunneriRDS databasei
  1. A client reaches the public application endpoint.

  2. The application sends database traffic through its outbound VPC connector.

Detalhes das caixas (3)
Web client

This example retains the default public incoming endpoint.

App Runner

The VPC connector changes outbound application traffic, separately from incoming access.

RDS database

The application can reach the private database through the configured VPC connector.

Da documentação da AWS (42)
  • App Runner creates and maintains a running web service from source code or a ready-to-run container image.
  • App Runner can deploy source code from GitHub or Bitbucket and source images from Amazon ECR.
  • For source code, configure the managed runtime, build command, start command and listening port; App Runner builds a container image and runs the service.
  • An App Runner managed runtime is the base image used to deploy a source-code repository.
  • Automatic deployment monitors the configured source and starts a deployment for a new image version or qualifying code change.
  • For code services, only commits that change the configured source directory trigger automatic deployment; the default source directory is the repository root.
  • A manual deployment is explicitly started through the console, CLI or StartDeployment API.
  • Automatic deployment is unsupported for ECR Public images and ECR images in another AWS account.
  • AutoDeploymentsEnabled defaults to false for ECR Public and cross-account ECR images, and true for code and same-account ECR images.
  • An access role gives App Runner permission to retrieve private ECR images; it is not required for ECR Public.
  • The access role trusts build.apprunner.amazonaws.com and can use AWSAppRunnerServicePolicyForECRAccess.
  • An instance role supplies the permissions needed by application code that calls AWS APIs.
  • An App Runner instance role trusts tasks.apprunner.amazonaws.com.
  • An App Runner service has a public incoming endpoint by default.
  • A private incoming endpoint uses a VPC interface endpoint through AWS PrivateLink to permit access from a VPC.
  • A VPC connector lets the application reach private VPC services, such as an RDS database.
  • A VPC connector affects outbound application traffic and does not change incoming traffic configuration.
  • App Runner VPC connector network interfaces have private IP addresses, so the connector needs private subnets.
  • With VPC-connected outbound traffic, use a NAT gateway for internet access or VPC endpoints for supported AWS APIs.
  • MaxConcurrency is the concurrent-request target per instance above which App Runner scales up.
  • MaxConcurrency defaults to 100 requests per instance.
  • MinSize sets the minimum number of provisioned instances and defaults to one.
  • MaxSize limits the number of instances actively serving traffic and defaults to twenty-five.
  • A higher MinSize increases the service spread across Availability Zones at a higher minimum cost.
  • All provisioned instances incur memory charges; only the active subset incurs CPU usage charges.
  • App Runner temporarily doubles provisioned instances during deployment to maintain capacity for old and new code.
  • The health protocol defaults to TCP, which checks the listening port; HTTP checks request the configured application path.
  • The HTTP health-check path defaults to /.
  • The default time between health checks is five seconds.
  • The default health-check response timeout is two seconds.
  • The default healthy threshold is one consecutive successful check.
  • The default unhealthy threshold is five consecutive failed checks.
  • During maintenance App Runner can report OPERATION_IN_PROGRESS and block service-management actions while the application continues handling requests.
  • App Runner stopped accepting new customers on April 30, 2026.
  • Existing App Runner customers can continue normal use, including creating new resources and services.
  • AWS continues App Runner security and availability investment but does not plan new features.
  • AWS recommends exploring Amazon ECS Express Mode when migrating from App Runner.
  • A container image contains application code and its required dependencies.
  • A repository is the source location containing the application code or source images for deployment.
  • An Availability Zone is an isolated location within an AWS Region.
  • A public NAT gateway lets private-subnet applications initiate internet connections without accepting unsolicited internet connections.
  • A private subnet is a VPC network range without a direct route to an internet gateway.

Flashcards

toque para virar
Resposta

·

Todos os 14 flashcards em lista

Which AWS service deploys a web application from source code or a container image while managing the underlying service?

AWS App Runner. It builds source when needed, deploys the application and scales it. It stopped accepting new customers on April 30, 2026; existing customers can continue normal use.

An existing App Runner customer wants a GitHub code commit to trigger deployment. Which source and deployment settings apply?

Connect the code repository, configure the runtime and build/start settings, and enable automatic deployment. Only changes in the configured source directory trigger code deployments.

An App Runner service uses an ECR Public image. Can it automatically deploy every new image version?

No. ECR Public images require manual deployment; cross-account private ECR images also do not support automatic deployment.

An App Runner service can pull a private ECR image but its application cannot call an AWS API. Which role should the team inspect?

The instance role. The access role retrieves the image; the instance role grants application API permissions.

A team wants App Runner to deploy a web application directly from source code. What must it configure?

Configure the managed runtime, build command, start command, and listening port. App Runner builds and runs the container image.

How can an App Runner service deploy new versions from a configured source automatically?

Enable automatic deployment. App Runner monitors the source and deploys new image versions or qualifying code changes.

An App Runner code service uses a source directory inside a repository. Which commits trigger automatic deployments?

Commits that change the configured source directory. The default directory is the repository root.

An App Runner service accepts a network connection but must test an application URL for health. What should the team configure?

HTTP health checks with the appropriate path. The default TCP check tests the listening port, not an application path.

A team wants to decide when to deploy a new App Runner source version. How can it start deployment?

Start a manual deployment through the console, CLI, or StartDeployment API.

Can App Runner automatically deploy new images from an Amazon ECR repository in another AWS account?

No. Automatic deployment does not support cross-account ECR images; start deployments manually.

An App Runner service uses an ECR Public image. How should a team deploy a new image version?

Start a manual deployment. Automatic deployment is not supported for ECR Public images.

Which repository sources can App Runner use to deploy a web application?

Use source code from GitHub or Bitbucket, or a source image from Amazon ECR.

An App Runner deployment is temporarily blocked with OPERATION_IN_PROGRESS during maintenance. Does that state alone mean the application has stopped serving requests?

No. Maintenance can block management actions while the application continues handling requests.

How does App Runner maintain capacity for old and new code during a deployment?

It temporarily doubles provisioned instances during deployment.

Você concluiu todos os tópicos da DOP-C02!

Seu badge ficou dourado. Próximo passo: agendar a prova na AWS. Depois de passar, adicione-se ao Quem passou.

Compartilhar

Conte que você concluiu esta certificação

Concluí todos os tópicos da AWS Certified DevOps Engineer - Professional (DOP-C02) no Easy Review. Venha estudar também!