<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Youss El</title>
    <description>The latest articles on DEV Community by Youss El (@getnivaro).</description>
    <link>https://dev.to/getnivaro</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4225668%2Fd9e98b70-ee06-4280-8f72-2bca5570a6d6.png</url>
      <title>DEV Community: Youss El</title>
      <link>https://dev.to/getnivaro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/getnivaro"/>
    <language>en</language>
    <item>
      <title>SAP-C03 ya está disponible: las 4 estrategias de recuperación ante desastres y cómo las pregunta el examen</title>
      <dc:creator>Youss El</dc:creator>
      <pubDate>Tue, 17 Nov 2026 11:04:21 +0000</pubDate>
      <link>https://dev.to/getnivaro/sap-c03-ya-esta-disponible-las-4-estrategias-de-recuperacion-ante-desastres-y-como-las-pregunta-el-3af0</link>
      <guid>https://dev.to/getnivaro/sap-c03-ya-esta-disponible-las-4-estrategias-de-recuperacion-ante-desastres-y-como-las-pregunta-el-3af0</guid>
      <description>&lt;p&gt;Desde hoy, 17 de noviembre de 2026, AWS ofrece el nuevo examen &lt;strong&gt;AWS Certified Solutions Architect – Professional (SAP-C03)&lt;/strong&gt;. Según la &lt;a href="https://docs.aws.amazon.com/aws-certification/latest/solutions-architect-professional-03/solutions-architect-professional-03.html" rel="noopener noreferrer"&gt;guía oficial del examen&lt;/a&gt;, tiene 65 preguntas que cuentan para la nota más 10 sin puntuar, la guía indica una nota mínima de 720 sobre 1000 (ver nota abajo) y el dominio 4, &lt;em&gt;Resilience, Migration, and Business Continuity&lt;/em&gt;, pesa un 15 % del contenido puntuado.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Nota (17 nov 2026):&lt;/strong&gt; la guía oficial de SAP-C03 indica 720, pero la &lt;a href="https://aws.amazon.com/certification/policies/after-testing/" rel="noopener noreferrer"&gt;política de exámenes de AWS&lt;/a&gt; fija 750 para los exámenes de nivel Professional y Specialty, y SAP-C02 también exigía 750. Hasta que AWS lo aclare, prepárate para 750.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Dentro de ese dominio hay un tema que aparece una y otra vez en forma de escenario largo: &lt;strong&gt;elegir la estrategia de recuperación ante desastres (DR)&lt;/strong&gt;. Las cuatro opciones suenan parecidas, pero el enunciado casi siempre te da la pista en una sola frase. Vamos a verlas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primero: RTO y RPO en una línea
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RTO (Recovery Time Objective):&lt;/strong&gt; cuánto tiempo puede estar caído el sistema. "Debe volver a funcionar en 15 minutos" es un RTO.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RPO (Recovery Point Objective):&lt;/strong&gt; cuántos datos puedes perder, medido en tiempo. "Podemos perder como máximo 5 minutos de transacciones" es un RPO.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cuanto más bajos sean ambos, más cara y compleja es la estrategia. El examen te pide casi siempre &lt;strong&gt;la opción más barata que todavía cumple&lt;/strong&gt; el RTO y el RPO.&lt;/p&gt;

&lt;h2&gt;
  
  
  Las cuatro estrategias
&lt;/h2&gt;

&lt;p&gt;Todas vienen del whitepaper oficial &lt;a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html" rel="noopener noreferrer"&gt;Disaster Recovery of Workloads on AWS&lt;/a&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Estrategia&lt;/th&gt;
&lt;th&gt;Qué está encendido en la región de DR&lt;/th&gt;
&lt;th&gt;RTO / RPO típicos&lt;/th&gt;
&lt;th&gt;Coste&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Backup and restore&lt;/td&gt;
&lt;td&gt;Solo copias de seguridad&lt;/td&gt;
&lt;td&gt;Horas&lt;/td&gt;
&lt;td&gt;El más bajo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pilot light&lt;/td&gt;
&lt;td&gt;Datos replicados en vivo + infraestructura básica; servidores de aplicación "apagados"&lt;/td&gt;
&lt;td&gt;Decenas de minutos&lt;/td&gt;
&lt;td&gt;Bajo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warm standby&lt;/td&gt;
&lt;td&gt;Copia completa del sistema, pero más pequeña, que ya atiende tráfico&lt;/td&gt;
&lt;td&gt;Minutos&lt;/td&gt;
&lt;td&gt;Medio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-site active/active&lt;/td&gt;
&lt;td&gt;Copia completa sirviendo tráfico en varias regiones&lt;/td&gt;
&lt;td&gt;Casi cero&lt;/td&gt;
&lt;td&gt;El más alto&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  1. Backup and restore
&lt;/h3&gt;

&lt;p&gt;Haces copias de seguridad (snapshots de EBS, RDS, DynamoDB, AWS Backup con copia a otra región) y, si ocurre el desastre, &lt;strong&gt;vuelves a crear toda la infraestructura&lt;/strong&gt; y restauras los datos.&lt;/p&gt;

&lt;p&gt;El detalle que el examen adora: sin &lt;strong&gt;infraestructura como código&lt;/strong&gt; (CloudFormation o CDK) la restauración es lenta y propensa a errores, y te puedes pasar del RTO. Si una respuesta dice "restaurar manualmente desde la consola", desconfía.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Palabras clave:&lt;/strong&gt; "coste mínimo", "RTO de horas", "se acepta perder los datos del último día".&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Pilot light
&lt;/h3&gt;

&lt;p&gt;Los datos se replican &lt;strong&gt;de forma continua&lt;/strong&gt; a la región de DR (Aurora Global Database, réplicas de lectura de RDS, DynamoDB global tables, replicación de S3) y la infraestructura central existe, pero los servidores de aplicación están apagados o a cero. En caso de desastre, los "enciendes" y escalas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;La diferencia con warm standby:&lt;/strong&gt; con pilot light &lt;strong&gt;no puedes atender peticiones&lt;/strong&gt; sin una acción previa (arrancar o escalar). Con warm standby sí, aunque con menos capacidad.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Palabras clave:&lt;/strong&gt; "RPO de segundos o minutos", "RTO de decenas de minutos", "minimizar el coste de los recursos en la región secundaria".&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Warm standby
&lt;/h3&gt;

&lt;p&gt;Una versión reducida pero &lt;strong&gt;totalmente funcional&lt;/strong&gt; del sistema ya está en marcha en la región de DR. Puede recibir tráfico desde el primer segundo; en un desastre solo tienes que escalarla a plena capacidad (por ejemplo, con Auto Scaling).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Palabras clave:&lt;/strong&gt; "RTO de minutos", "debe poder atender tráfico de inmediato aunque sea con capacidad reducida", "probar la región secundaria con tráfico real".&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Multi-site active/active
&lt;/h3&gt;

&lt;p&gt;El sistema funciona a plena capacidad en dos o más regiones y todas sirven tráfico. Si una cae, el tráfico se va a las demás.&lt;/p&gt;

&lt;p&gt;Aquí el examen suele meter el problema de las &lt;strong&gt;escrituras&lt;/strong&gt;: DynamoDB global tables permite escribir en todas las regiones con resolución "last writer wins"; otra opción es asignar las escrituras a una región según una clave (por ejemplo, el ID de usuario) para evitar conflictos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Palabras clave:&lt;/strong&gt; "RTO y RPO prácticamente cero", "usuarios globales", "ninguna interrupción es aceptable" y un presupuesto que lo permite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Las trampas que más se repiten
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Trampa 1: replicar no es hacer copia de seguridad.&lt;/strong&gt; La replicación continua copia también los datos corruptos o borrados por error. El whitepaper insiste: incluso con pilot light o active/active necesitas &lt;strong&gt;copias puntuales (point-in-time)&lt;/strong&gt; o versionado de S3. Si el escenario habla de ransomware, borrado accidental o corrupción de datos, la respuesta lleva backups, no solo réplicas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trampa 2: el failover debe usar el &lt;em&gt;data plane&lt;/em&gt;, no el &lt;em&gt;control plane&lt;/em&gt;.&lt;/strong&gt; AWS separa el plano de datos (lo que sirve el tráfico en tiempo real) del plano de control (lo que configura recursos). El plano de datos tiene objetivos de disponibilidad más altos. Por eso, para conmutar el tráfico entre regiones de forma fiable, AWS recomienda &lt;strong&gt;Amazon Application Recovery Controller (ARC)&lt;/strong&gt;: sus routing controls funcionan como interruptores (health checks de Route 53 que tú activas o desactivas) mediante una API del plano de datos. Una respuesta que depende de editar registros DNS durante el desastre es más frágil.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trampa 3: CloudFront origin failover no es un failover regional completo.&lt;/strong&gt; CloudFront prueba el origen secundario &lt;strong&gt;petición a petición&lt;/strong&gt;; las siguientes peticiones siguen yendo primero al origen principal. Sirve para contenido, no sustituye a Route 53, ARC o AWS Global Accelerator para mover toda la aplicación.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trampa 4: servidores on-premises.&lt;/strong&gt; Si el escenario habla de servidores en tu propio centro de datos (o en otra nube) y pide DR en AWS con RPO de segundos y poco esfuerzo, piensa en &lt;strong&gt;AWS Elastic Disaster Recovery&lt;/strong&gt;: replica a nivel de bloque y lanza la copia completa en AWS solo cuando la necesitas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cómo leer una pregunta de DR en 30 segundos
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Busca el &lt;strong&gt;RTO&lt;/strong&gt; y el &lt;strong&gt;RPO&lt;/strong&gt; en el enunciado. Si no hay números, busca adjetivos: "inmediato", "en pocos minutos", "en unas horas".&lt;/li&gt;
&lt;li&gt;Busca la restricción de coste: "más rentable", "minimizar costes" o, al revés, "a cualquier coste".&lt;/li&gt;
&lt;li&gt;Elige la estrategia &lt;strong&gt;más barata que cumple&lt;/strong&gt; ambos objetivos. No la mejor en abstracto.&lt;/li&gt;
&lt;li&gt;Comprueba que la respuesta incluye protección frente a corrupción de datos (backups o versionado) y un mecanismo de failover fiable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Pregunta de ejemplo
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Una empresa ejecuta una aplicación web en una región de AWS con una base de datos Amazon Aurora MySQL. El negocio exige un RPO de 1 minuto y un RTO de 30 minutos ante la pérdida de una región. La dirección quiere minimizar el coste de la región secundaria. ¿Qué solución cumple estos requisitos?&lt;/p&gt;

&lt;p&gt;A. Copias diarias con AWS Backup a una segunda región y plantillas de CloudFormation para recrear la infraestructura.&lt;br&gt;
B. Aurora Global Database con un clúster secundario en la segunda región, la infraestructura de aplicación definida en CloudFormation y escalada a cero, y conmutación con Amazon Application Recovery Controller.&lt;br&gt;
C. Una copia completa de la aplicación funcionando a plena capacidad en ambas regiones con DynamoDB global tables.&lt;br&gt;
D. Una réplica de la aplicación a media capacidad sirviendo el 50 % del tráfico con Route 53 weighted routing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Respuesta: B.&lt;/strong&gt; Es un pilot light: Aurora Global Database replica de forma continua (RPO de segundos), la infraestructura está lista para escalar en menos de 30 minutos y casi nada consume recursos mientras no hay desastre. A no cumple el RPO (pierde hasta un día de datos). C y D cumplen, pero cuestan bastante más de lo necesario, y C además obliga a cambiar de base de datos.&lt;/p&gt;

&lt;h2&gt;
  
  
  Para practicar
&lt;/h2&gt;

&lt;p&gt;He preparado 6 exámenes de práctica para SAP-C03 en español: 450 preguntas originales de escenario (75 por examen, como el examen real), con la explicación de cada opción y un enlace a la documentación de AWS. Hasta el 28 de noviembre el curso cuesta $34.99 con este enlace:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.udemy.com/course/aws-solutions-architect-pro-sap-c03-6-examenes-de-practica/?couponCode=SAPC03ESLAUNCH" rel="noopener noreferrer"&gt;https://www.udemy.com/course/aws-solutions-architect-pro-sap-c03-6-examenes-de-practica/?couponCode=SAPC03ESLAUNCH&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Aviso: el curso es mío. No está afiliado ni respaldado por AWS. Los exámenes de práctica son solo una parte de la preparación: la experiencia práctica y la guía oficial del examen son igual de importantes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>certification</category>
      <category>spanish</category>
      <category>cloud</category>
    </item>
    <item>
      <title>DVA-C03 API Gateway: throttling, caching, authorizers and the error codes the exam loves</title>
      <dc:creator>Youss El</dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:23:20 +0000</pubDate>
      <link>https://dev.to/getnivaro/dva-c03-api-gateway-throttling-caching-authorizers-and-the-error-codes-the-exam-loves-4b1c</link>
      <guid>https://dev.to/getnivaro/dva-c03-api-gateway-throttling-caching-authorizers-and-the-error-codes-the-exam-loves-4b1c</guid>
      <description>&lt;p&gt;Amazon API Gateway is one of those services that shows up in almost every domain of the AWS Certified Developer Associate exam (DVA-C03): development, security, deployment and troubleshooting. The questions rarely ask "what is API Gateway?". They describe a symptom or a requirement and expect you to know which setting or feature fits.&lt;/p&gt;

&lt;p&gt;This guide walks through the parts that come up most, with the keywords that point to each answer. Everything here is based on the &lt;a href="https://aws.amazon.com/certification/certified-developer-associate/" rel="noopener noreferrer"&gt;official exam page&lt;/a&gt; and the &lt;a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html" rel="noopener noreferrer"&gt;API Gateway developer guide&lt;/a&gt;. AWS changes limits and features over time, so always check the docs before your exam.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. REST API or HTTP API?
&lt;/h2&gt;

&lt;p&gt;API Gateway has two main flavours for request/response APIs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HTTP API&lt;/strong&gt;: cheaper, lower latency, simpler. Supports Lambda and HTTP integrations, JWT authorizers (for example with Amazon Cognito or any OIDC provider), Lambda authorizers and IAM authorization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;REST API&lt;/strong&gt;: more features. API keys and usage plans, response caching, request validation, AWS WAF integration, resource policies, private endpoints, and mapping templates to transform requests and responses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to read the question:&lt;/strong&gt; if the requirement mentions &lt;em&gt;caching&lt;/em&gt;, &lt;em&gt;usage plans per customer&lt;/em&gt;, &lt;em&gt;API keys&lt;/em&gt;, &lt;em&gt;request validation&lt;/em&gt; or &lt;em&gt;WAF&lt;/em&gt;, the answer is a REST API. If it says &lt;em&gt;lowest cost&lt;/em&gt; or &lt;em&gt;lowest latency&lt;/em&gt; and needs none of those, HTTP API is usually the better fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Status codes: 429, 502, 504 and 403
&lt;/h2&gt;

&lt;p&gt;Troubleshooting questions love to give you a status code and ask for the cause.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;429 Too Many Requests&lt;/strong&gt;: throttling. Either the account-level limit for the Region, a stage or method throttle you set, or a usage plan limit for that API key. Fix: raise the limit, add a usage plan, or have the client retry with exponential backoff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;502 Bad Gateway&lt;/strong&gt;: very often a Lambda proxy integration returning a response in the wrong format. With proxy integration, your function must return an object with &lt;code&gt;statusCode&lt;/code&gt;, &lt;code&gt;headers&lt;/code&gt; and a string &lt;code&gt;body&lt;/code&gt;. Returning a plain object or a non-string body gives a 502.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;504 Gateway Timeout&lt;/strong&gt;: the integration took too long. REST API integrations have a default timeout of 29 seconds. If the backend needs longer, the answer is usually to make the work asynchronous (for example, put the job on SQS or start a Step Functions execution and return right away) rather than wait.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;403 Forbidden&lt;/strong&gt;: missing or invalid authorization, a missing API key when the method requires one, or a resource policy that denies the caller.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A quick memory aid: &lt;strong&gt;4xx means the client side or limits&lt;/strong&gt;, &lt;strong&gt;5xx means something behind API Gateway went wrong&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Throttling and usage plans
&lt;/h2&gt;

&lt;p&gt;API Gateway throttles at several levels: an account-level limit per Region, then stage and method limits you configure, then per-client limits through &lt;strong&gt;usage plans&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A usage plan links one or more API stages to &lt;strong&gt;API keys&lt;/strong&gt; and sets a rate, a burst and an optional quota (for example, 10,000 requests per month). This is the classic answer when a question says "each customer must be limited to N requests" or "offer a free tier and a paid tier of the API".&lt;/p&gt;

&lt;p&gt;Important nuance for the exam: API keys are for &lt;strong&gt;identifying and metering clients&lt;/strong&gt;, not for authentication. If the question is about securing who can call the API, look at authorizers or IAM instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Response caching
&lt;/h2&gt;

&lt;p&gt;REST APIs can cache responses per stage. The key facts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The default TTL is 300 seconds, the maximum is 3600 seconds, and a TTL of 0 turns caching off.&lt;/li&gt;
&lt;li&gt;You can choose which parameters (headers, query strings, path) are part of the cache key. If two users get each other's data, the cache key is probably missing a parameter.&lt;/li&gt;
&lt;li&gt;A client can ask to skip the cache with the header &lt;code&gt;Cache-Control: max-age=0&lt;/code&gt;, but only if it is allowed to invalidate the cache. You can require authorization for this so random clients cannot flush your cache.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to read the question:&lt;/strong&gt; "reduce the number of calls to the backend" or "improve latency for repeated identical requests" points to stage caching. "Users see stale data after an update" points to a lower TTL or cache invalidation.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Authorizers: IAM, Cognito, JWT or Lambda?
&lt;/h2&gt;

&lt;p&gt;This is one of the most tested areas.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IAM authorization&lt;/strong&gt;: callers sign requests with Signature Version 4. Best for AWS services, internal tools and other AWS accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cognito user pool authorizer&lt;/strong&gt; (REST API) or &lt;strong&gt;JWT authorizer&lt;/strong&gt; (HTTP API): users sign in to a user pool or OIDC provider and send a token. Best for web and mobile apps with user sign-up and sign-in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lambda authorizer&lt;/strong&gt;: your own function decides. Use it for custom tokens, third-party identity providers that are not OIDC, or decisions based on headers, query strings or the source IP. There are two types: &lt;strong&gt;TOKEN&lt;/strong&gt; (looks at a single header such as a bearer token) and &lt;strong&gt;REQUEST&lt;/strong&gt; (can look at headers, query strings, stage variables and context).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Lambda authorizer results can be cached (by default for 300 seconds). If a question says "the authorizer function is invoked on every request and costs too much", enable or increase authorizer caching. If it says "a user still has access after their permissions were removed", the cached policy is the likely cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Stages, stage variables and canary releases
&lt;/h2&gt;

&lt;p&gt;A deployment is a snapshot of your API, and a &lt;strong&gt;stage&lt;/strong&gt; (dev, test, prod) is where a deployment is published.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stage variables&lt;/strong&gt; act like environment variables for a stage. A common pattern is pointing each stage at a different Lambda alias, for example &lt;code&gt;${stageVariables.lambdaAlias}&lt;/code&gt;. Remember that API Gateway needs permission to invoke each alias.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Canary release&lt;/strong&gt; on a REST API stage sends a percentage of traffic to a new deployment. That is the API Gateway answer when a question asks for gradual rollout at the API level. If the question is about the Lambda function itself, weighted aliases or CodeDeploy traffic shifting are the more common answers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. CORS: the proxy integration trap
&lt;/h2&gt;

&lt;p&gt;If a browser app on another domain calls your API and gets a CORS error:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enable CORS on the API so the &lt;code&gt;OPTIONS&lt;/code&gt; preflight request returns the right headers.&lt;/li&gt;
&lt;li&gt;With &lt;strong&gt;Lambda proxy integration&lt;/strong&gt;, API Gateway passes the response straight through, so your &lt;strong&gt;function must return the &lt;code&gt;Access-Control-Allow-Origin&lt;/code&gt; header&lt;/strong&gt; itself. Enabling CORS in the console alone is not enough. This detail shows up in exam questions more than you would expect.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. A quick decision checklist
&lt;/h2&gt;

&lt;p&gt;Before you look at the answer options, find the one constraint in the question:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is it about &lt;strong&gt;cost/latency&lt;/strong&gt; with simple needs? → HTTP API.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;per-customer limits&lt;/strong&gt;? → Usage plan with API keys.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;repeated identical reads&lt;/strong&gt;? → Stage caching.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;who can call the API&lt;/strong&gt;? → IAM, Cognito/JWT, or a Lambda authorizer.&lt;/li&gt;
&lt;li&gt;Is there a &lt;strong&gt;status code&lt;/strong&gt;? → 429 throttling, 502 bad proxy response, 504 timeout, 403 auth or policy.&lt;/li&gt;
&lt;li&gt;Is it about &lt;strong&gt;safe rollout&lt;/strong&gt;? → Stage canary, or Lambda alias traffic shifting.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to practice this
&lt;/h2&gt;

&lt;p&gt;Reading is not enough for API Gateway. Build a small API in your own account: a Lambda proxy integration, a usage plan with an API key, a Cognito authorizer, and a stage with caching turned on. Then break it on purpose: return a body that is not a string, add a sleep longer than the timeout, call it without the key. Seeing the 502, 504 and 403 yourself makes these questions much easier.&lt;/p&gt;

&lt;p&gt;After that, timed practice questions help you get used to how the scenarios are worded.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the author of a set of DVA-C03 practice exams on Udemy: 6 full exams (390 questions) that follow the C03 domain weights, with an explanation and an AWS docs link for every answer. If you want timed practice on topics like the ones above, the current price is $34.99 with this link: &lt;a href="https://www.udemy.com/course/aws-developer-associate-dva-c03-6-practice-exams-2026/?couponCode=DVAC03LAUNCH" rel="noopener noreferrer"&gt;AWS Developer Associate DVA-C03 – 6 Practice Exams&lt;/a&gt;. Not affiliated with AWS. Parts of this article were drafted with AI assistance and reviewed against the AWS documentation.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>certification</category>
      <category>serverless</category>
      <category>api</category>
    </item>
    <item>
      <title>AIF-C01: ROUGE, BLEU, BERTScore or LLM-as-a-judge? Evaluating foundation models the way the exam asks</title>
      <dc:creator>Youss El</dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:23:18 +0000</pubDate>
      <link>https://dev.to/getnivaro/aif-c01-rouge-bleu-bertscore-or-llm-as-a-judge-evaluating-foundation-models-the-way-the-exam-449n</link>
      <guid>https://dev.to/getnivaro/aif-c01-rouge-bleu-bertscore-or-llm-as-a-judge-evaluating-foundation-models-the-way-the-exam-449n</guid>
      <description>&lt;p&gt;Domain 3 of the AWS Certified AI Practitioner exam (AIF-C01), "Applications of Foundation Models", is 28% of the scored content. One of its task statements is all about evaluation: how do you know a foundation model (FM) is actually good enough? The exam guide names the tools explicitly, so they are worth learning properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to evaluate
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Automatic metrics on a dataset&lt;/strong&gt;: fast, cheap, repeatable. You compare model output to reference answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human-in-the-loop evaluation&lt;/strong&gt;: people rate the outputs. Slower and more expensive, but the only way to judge things like tone, brand voice or helpfulness.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM-as-a-judge&lt;/strong&gt;: another model scores the outputs against criteria you define. Scales better than humans for subjective quality.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Benchmark datasets sit under the first option: standard, public datasets that let you compare models on the same questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The metrics, matched to the task
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Think of it as&lt;/th&gt;
&lt;th&gt;Typical task&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ROUGE&lt;/td&gt;
&lt;td&gt;How much of the reference text the output recalls (word overlap)&lt;/td&gt;
&lt;td&gt;Summarization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BLEU&lt;/td&gt;
&lt;td&gt;How precisely the output matches reference wording&lt;/td&gt;
&lt;td&gt;Machine translation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BERTScore&lt;/td&gt;
&lt;td&gt;Semantic similarity using embeddings, so synonyms still count&lt;/td&gt;
&lt;td&gt;Summarization, paraphrasing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;F1 / accuracy&lt;/td&gt;
&lt;td&gt;Correct answers vs. expected answers&lt;/td&gt;
&lt;td&gt;Question answering, classification&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A quick memory hook: &lt;strong&gt;ROUGE = Recall-Oriented&lt;/strong&gt;, it is in the name (Recall-Oriented Understudy for Gisting Evaluation). &lt;strong&gt;BLEU = Bilingual&lt;/strong&gt;, Bilingual Evaluation Understudy, so translation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Amazon Bedrock Model Evaluation does
&lt;/h2&gt;

&lt;p&gt;Bedrock can run automatic evaluation jobs with built-in datasets. Per task type it measures accuracy, robustness and toxicity. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text summarization&lt;/strong&gt;: accuracy is computed with BERTScore.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Question and answer&lt;/strong&gt;: accuracy is computed with NLP-F1.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text classification&lt;/strong&gt;: accuracy is classification accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;General text generation&lt;/strong&gt;: accuracy, robustness and toxicity (for example with the RealToxicityPrompts dataset for toxicity).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Robustness checks how much the score changes when the prompt is slightly perturbed. Toxicity checks for harmful content.&lt;/p&gt;

&lt;p&gt;Bedrock also supports evaluations with human workers, for criteria a metric can't capture.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-tasks.html" rel="noopener noreferrer"&gt;Model evaluation task types in Amazon Bedrock&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 1: a good metric is not a good business result
&lt;/h2&gt;

&lt;p&gt;The exam guide also lists business alignment metrics: task completion rate, user satisfaction, cost per interaction, productivity and user engagement. If a question asks whether the model "meets business objectives", the answer is one of these, not ROUGE.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 2: human evaluation is not always the "best" answer
&lt;/h2&gt;

&lt;p&gt;When the scenario says "subjective", "brand style" or "friendliness", humans (or LLM-as-a-judge) fit. When it says "quickly compare several models at low cost", automatic evaluation with a benchmark dataset is what AWS wants.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 3: evaluate the application, not only the model
&lt;/h2&gt;

&lt;p&gt;A RAG chatbot or an agent can fail even with a strong model: wrong documents retrieved, a tool call that fails, a workflow that stops halfway. The exam guide explicitly mentions evaluating applications built on FMs, such as RAG, agents and workflows.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sample question
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;A company wants to compare three foundation models for summarizing customer support tickets. It needs a quick, low-cost comparison that measures how well each summary preserves the meaning of a reference summary, even when different words are used. Which approach fits best?&lt;/p&gt;

&lt;p&gt;A. Run a human evaluation job with a private workforce&lt;br&gt;
B. Use automatic evaluation with BERTScore&lt;br&gt;
C. Measure BLEU against a translated reference&lt;br&gt;
D. Track cost per interaction in production&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Answer: B.&lt;/strong&gt; Quick and low-cost points to automatic evaluation. "Preserves the meaning, even with different words" points to BERTScore, which uses semantic similarity instead of exact word overlap. BLEU is word-precision based and typical for translation; cost per interaction is a business metric, not a quality metric.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before exam day
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;ROUGE → summarization (recall), BLEU → translation (precision), BERTScore → meaning.&lt;/li&gt;
&lt;li&gt;Subjective quality → human evaluation or LLM-as-a-judge.&lt;/li&gt;
&lt;li&gt;Business questions → completion rate, satisfaction, cost per interaction.&lt;/li&gt;
&lt;li&gt;Read the official AIF-C01 exam guide for the full task statements.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;I wrote 6 AIF-C01 practice exams with an explanation for every option. Until November 28 it's $34.99 with this link: &lt;a href="https://www.udemy.com/course/aws-ai-practitioner-aif-c01-6-practice-exams/?couponCode=AIFC01LAUNCH" rel="noopener noreferrer"&gt;https://www.udemy.com/course/aws-ai-practitioner-aif-c01-6-practice-exams/?couponCode=AIFC01LAUNCH&lt;/a&gt;. Not affiliated with or endorsed by AWS.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ai</category>
      <category>certification</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>AIF-C01: temperature, Top K and Top P explained the way the exam asks about them</title>
      <dc:creator>Youss El</dc:creator>
      <pubDate>Thu, 05 Nov 2026 14:23:02 +0000</pubDate>
      <link>https://dev.to/getnivaro/aif-c01-temperature-top-k-and-top-p-explained-the-way-the-exam-asks-about-them-44ee</link>
      <guid>https://dev.to/getnivaro/aif-c01-temperature-top-k-and-top-p-explained-the-way-the-exam-asks-about-them-44ee</guid>
      <description>&lt;p&gt;"A company wants its chatbot to give the same, predictable answer to a compliance question every time. Which inference parameter should the team change?"&lt;/p&gt;

&lt;p&gt;If you're preparing for the AWS Certified AI Practitioner exam (AIF-C01), questions like this are a gift, because the answer is mechanical once you know what each parameter does. According to the &lt;a href="https://aws.amazon.com/certification/certified-ai-practitioner/" rel="noopener noreferrer"&gt;official exam page&lt;/a&gt;, AIF-C01 is a foundational exam with 65 questions in 90 minutes. Here's the part of generative AI that's easy to mix up: inference parameters.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an inference parameter is
&lt;/h2&gt;

&lt;p&gt;When a foundation model generates text, it picks one token (a word or part of a word) at a time. For each position it computes a probability distribution over possible next tokens. Inference parameters change &lt;em&gt;how it samples from that distribution&lt;/em&gt; or &lt;em&gt;how long the output can be&lt;/em&gt;. They don't change the model itself, and they don't need training data (&lt;a href="https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html" rel="noopener noreferrer"&gt;Bedrock docs&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Randomness and diversity: three parameters
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Lower value&lt;/th&gt;
&lt;th&gt;Higher value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Temperature&lt;/td&gt;
&lt;td&gt;Changes the shape of the probability distribution&lt;/td&gt;
&lt;td&gt;More likely to pick high-probability tokens, more deterministic&lt;/td&gt;
&lt;td&gt;Flatter distribution, more likely to pick low-probability tokens, more random&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top K&lt;/td&gt;
&lt;td&gt;Number of most-likely candidate tokens considered&lt;/td&gt;
&lt;td&gt;Fewer candidates&lt;/td&gt;
&lt;td&gt;More candidates, allowing less likely output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top P&lt;/td&gt;
&lt;td&gt;Share of the cumulative probability considered&lt;/td&gt;
&lt;td&gt;Smaller pool, which varies per token&lt;/td&gt;
&lt;td&gt;Larger pool, allowing less likely output&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The documentation uses a nice example. For the prompt &lt;code&gt;I hear the hoof beats of "&lt;/code&gt;, suppose the model gives "horses" 0.7, "zebras" 0.2 and "unicorns" 0.1:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A high temperature flattens the distribution, so "unicorns" becomes more likely and "horses" less likely.&lt;/li&gt;
&lt;li&gt;Top K = 2 means only "horses" and "zebras" are considered.&lt;/li&gt;
&lt;li&gt;Top P = 0.7 means only "horses" is considered. Top P = 0.9 means "horses" and "zebras".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The difference to remember: Top K is a &lt;em&gt;fixed number&lt;/em&gt; of candidates. Top P is a &lt;em&gt;share of probability&lt;/em&gt;, so the number of candidates changes from token to token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Length parameters
&lt;/h2&gt;

&lt;p&gt;Models also typically support parameters that limit the output:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Response length&lt;/strong&gt;: a minimum or maximum number of tokens to return.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Penalties&lt;/strong&gt;: reduce things like repeated tokens, frequent tokens or long responses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop sequences&lt;/strong&gt;: character sequences that make the model stop once it generates one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which one do I change?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Goal in the scenario&lt;/th&gt;
&lt;th&gt;Adjust&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Consistent, predictable, factual answers&lt;/td&gt;
&lt;td&gt;Lower temperature&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;More creative, varied copy such as marketing slogans&lt;/td&gt;
&lt;td&gt;Higher temperature&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stop the output from getting too long or too expensive&lt;/td&gt;
&lt;td&gt;Lower the maximum response length&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stop at a known marker, for example the end of a list&lt;/td&gt;
&lt;td&gt;Stop sequence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reduce repeated phrases&lt;/td&gt;
&lt;td&gt;Penalties&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Trap: parameters are not customization
&lt;/h2&gt;

&lt;p&gt;A frequent mistake is to answer "fine-tune the model" when the scenario only needs a different style of output. Inference parameters are the cheapest lever: nothing is retrained, and you can change them on every request. If a scenario says the model is "too random" or "too repetitive", look at the parameters first. Fine-tuning and retrieval-augmented generation (RAG) solve different problems: teaching the model a task or style, and giving it fresh or private knowledge.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sample question
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;A company uses a foundation model in Amazon Bedrock to answer internal policy questions. Users report that the same question gets slightly different wording and sometimes different details each time. The company wants more consistent answers without retraining the model. What should the team do?&lt;/p&gt;

&lt;p&gt;A. Increase the temperature.&lt;br&gt;
B. Decrease the temperature.&lt;br&gt;
C. Fine-tune the model on the policy documents.&lt;br&gt;
D. Increase the maximum response length.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Answer: B.&lt;/strong&gt; A lower temperature steepens the distribution, so the model picks high-probability tokens and answers become more deterministic. A higher temperature does the opposite. Fine-tuning changes the model and isn't needed just for consistency. Response length only limits how long the answer can be, not how random it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before exam day
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Temperature: low = predictable, high = varied.&lt;/li&gt;
&lt;li&gt;Top K = a fixed number of candidates. Top P = a share of cumulative probability.&lt;/li&gt;
&lt;li&gt;Length controls: maximum response length, penalties, stop sequences.&lt;/li&gt;
&lt;li&gt;Inference parameters change behavior per request. They don't retrain the model.&lt;/li&gt;
&lt;li&gt;When the scenario needs a different output style, think parameters or prompting first, then RAG or fine-tuning.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good luck with AIF-C01.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I wrote 6 AIF-C01 practice exams (390 scenario questions with an explanation for every option). $34.99 until Nov 28: &lt;a href="https://www.udemy.com/course/aws-ai-practitioner-aif-c01-6-practice-exams/?couponCode=AIFC01LAUNCH" rel="noopener noreferrer"&gt;https://www.udemy.com/course/aws-ai-practitioner-aif-c01-6-practice-exams/?couponCode=AIFC01LAUNCH&lt;/a&gt;. Not affiliated with or endorsed by AWS.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ai</category>
      <category>certification</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>SOA-C03 CloudWatch alarms: the missing-data setting that decides whether you get paged</title>
      <dc:creator>Youss El</dc:creator>
      <pubDate>Wed, 04 Nov 2026 07:53:14 +0000</pubDate>
      <link>https://dev.to/getnivaro/soa-c03-cloudwatch-alarms-the-missing-data-setting-that-decides-whether-you-get-paged-467m</link>
      <guid>https://dev.to/getnivaro/soa-c03-cloudwatch-alarms-the-missing-data-setting-that-decides-whether-you-get-paged-467m</guid>
      <description>&lt;p&gt;"An alarm on a metric that only reports data when something goes wrong never leaves the INSUFFICIENT_DATA state. How do you fix it?"&lt;/p&gt;

&lt;p&gt;Monitoring is a core part of the AWS Certified CloudOps Engineer – Associate exam (SOA-C03, the renamed SysOps Administrator Associate). It's 65 questions in 130 minutes, according to the &lt;a href="https://aws.amazon.com/certification/certified-cloudops-engineer-associate/" rel="noopener noreferrer"&gt;official exam page&lt;/a&gt;, and CloudWatch alarm behavior is the kind of detail operations questions are built around. Here's the part that trips people up most: what an alarm does when data is &lt;em&gt;missing&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three states
&lt;/h2&gt;

&lt;p&gt;A metric alarm is always in one of these states (&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/alarm-evaluation.html" rel="noopener noreferrer"&gt;alarm evaluation docs&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;OK&lt;/code&gt;: the metric is within the threshold.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ALARM&lt;/code&gt;: the metric is outside the threshold.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;INSUFFICIENT_DATA&lt;/code&gt;: the alarm has just started, the metric isn't available, or there isn't enough data to decide.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An alarm only invokes its actions when it &lt;em&gt;changes state&lt;/em&gt; (the exception is Auto Scaling actions, which repeat once per minute while the alarm stays in the new state).&lt;/p&gt;

&lt;h2&gt;
  
  
  Three settings that control evaluation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Period&lt;/strong&gt;: how long each data point covers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evaluation Periods (N)&lt;/strong&gt;: how many of the most recent data points are looked at.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Datapoints to Alarm (M)&lt;/strong&gt;: how many of those must be breaching. They don't have to be consecutive.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If M and N differ, you have an "M out of N" alarm. For example, 4 out of 5 with a 1-minute period has an evaluation interval of 5 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat missing data: four options
&lt;/h2&gt;

&lt;p&gt;Not every data point always arrives: a connection drops, a server goes down, or a metric reports only when something happens. For each alarm you choose how to treat those gaps (&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/alarms-and-missing-data.html" rel="noopener noreferrer"&gt;missing data docs&lt;/a&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Missing data points are treated as...&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;notBreaching&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Good, within the threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;breaching&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Bad, violating the threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ignore&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Nothing: the current alarm state is kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;missing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Missing: if &lt;em&gt;all&lt;/em&gt; data points in the range are missing, the alarm goes to &lt;code&gt;INSUFFICIENT_DATA&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The default is &lt;code&gt;missing&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When does each make sense? AWS gives two examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A rollback alarm on a metric that &lt;em&gt;continually&lt;/em&gt; reports data: missing data probably means something is wrong, so use &lt;code&gt;breaching&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A metric that only produces data when an error occurs, such as &lt;code&gt;ThrottledRequests&lt;/code&gt; in DynamoDB: no data means no errors, so use &lt;code&gt;notBreaching&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two more details worth knowing: alarms on &lt;code&gt;AWS/DynamoDB&lt;/code&gt; metrics default to &lt;code&gt;ignore&lt;/code&gt;, and for EC2 alarms that stop, terminate, reboot or recover an instance, AWS recommends treating missing data as &lt;code&gt;missing&lt;/code&gt; and triggering the action only from the &lt;code&gt;ALARM&lt;/code&gt; state, because EC2 metrics can briefly go missing even for a healthy instance.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the alarm does with all-missing data
&lt;/h2&gt;

&lt;p&gt;Say Datapoints to Alarm and Evaluation Periods are both 3, and the five most recent data points are all missing. The result depends only on the setting:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Resulting state&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;missing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INSUFFICIENT_DATA&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ignore&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Keeps the current state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;breaching&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ALARM&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;notBreaching&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If at least as many real data points exist as Evaluation Periods, CloudWatch just evaluates those real points and the missing-data setting isn't used at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap: alarm noise and composite alarms
&lt;/h2&gt;

&lt;p&gt;Too many alarms paging you for the same incident? A &lt;strong&gt;composite alarm&lt;/strong&gt; combines the states of other alarms with a rule expression, so you can alert only on the composite. Composite alarms can send SNS notifications and create investigations, Systems Manager OpsItems or incidents, but they can't perform EC2 or Auto Scaling actions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap: the alarm that never fires fast enough
&lt;/h2&gt;

&lt;p&gt;The evaluation window is Period × Evaluation Periods. For periods of one minute or longer, the alarm is evaluated every minute. An alarm with a very long evaluation window reacts slowly: if the window exceeds one day, it's only evaluated once per hour. If a question asks why a daily-job alarm took an hour to react, that's the reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sample question
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;An application publishes a custom metric &lt;code&gt;FailedPayments&lt;/code&gt; only when a payment fails. A CloudWatch alarm on it stays in INSUFFICIENT_DATA for days, and the on-call team can't tell whether things are healthy. What should the CloudOps engineer do?&lt;/p&gt;

&lt;p&gt;A. Increase the alarm period to 24 hours.&lt;br&gt;
B. Set the alarm to treat missing data as &lt;code&gt;notBreaching&lt;/code&gt;.&lt;br&gt;
C. Set the alarm to treat missing data as &lt;code&gt;breaching&lt;/code&gt;.&lt;br&gt;
D. Replace the alarm with a composite alarm.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Answer: B.&lt;/strong&gt; The metric only exists when failures happen, so a gap means "no failures". &lt;code&gt;notBreaching&lt;/code&gt; keeps the alarm in &lt;code&gt;OK&lt;/code&gt; during those gaps. &lt;code&gt;breaching&lt;/code&gt; would page the team whenever payments are healthy. A longer period doesn't change how gaps are treated, and a composite alarm just combines other alarms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before exam day
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Three states: &lt;code&gt;OK&lt;/code&gt;, &lt;code&gt;ALARM&lt;/code&gt;, &lt;code&gt;INSUFFICIENT_DATA&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Know Period, Evaluation Periods and Datapoints to Alarm, and what "M out of N" means.&lt;/li&gt;
&lt;li&gt;Four missing-data options, and the default is &lt;code&gt;missing&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Metric only reports on errors → &lt;code&gt;notBreaching&lt;/code&gt;. Metric should always report → &lt;code&gt;breaching&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Actions fire on state changes, not on every evaluation.&lt;/li&gt;
&lt;li&gt;Composite alarms reduce noise but can't run EC2 or Auto Scaling actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good luck with SOA-C03.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I wrote 2 SOA-C03 practice exams (130 scenario questions with an explanation for every option). $34.99 until Dec 4: &lt;a href="https://www.udemy.com/course/aws-cloudops-engineer-associate-soa-c03-2-practice-exams/?couponCode=SOAC03LAUNCH" rel="noopener noreferrer"&gt;https://www.udemy.com/course/aws-cloudops-engineer-associate-soa-c03-2-practice-exams/?couponCode=SOAC03LAUNCH&lt;/a&gt;. Not affiliated with or endorsed by AWS.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudwatch</category>
      <category>certification</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
