<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BADR EL KHALYLY on Medium]]></title>
        <description><![CDATA[Stories by BADR EL KHALYLY on Medium]]></description>
        <link>https://medium.com/@badrelkhalyly92?source=rss-9a2af0dd4196------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UuiwU6QhxYpkGdho</url>
            <title>Stories by BADR EL KHALYLY on Medium</title>
            <link>https://medium.com/@badrelkhalyly92?source=rss-9a2af0dd4196------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:25:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@badrelkhalyly92/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Voici la liste des mesures (metrics) clés que tu peux suivre dans un contexte DevOps / CI/CD.]]></title>
            <link>https://medium.com/@badrelkhalyly92/voici-la-liste-des-mesures-metrics-cl%C3%A9s-que-tu-peux-suivre-dans-un-contexte-devops-ci-cd-7378c5910481?source=rss-9a2af0dd4196------2</link>
            <guid isPermaLink="false">https://medium.com/p/7378c5910481</guid>
            <dc:creator><![CDATA[BADR EL KHALYLY]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 22:40:58 GMT</pubDate>
            <atom:updated>2025-09-25T22:42:09.269Z</atom:updated>
            <content:encoded><![CDATA[<p>Voici la <strong>liste des mesures (metrics) clés</strong> que tu peux suivre dans un contexte <strong>DevOps / CI/CD</strong>. Elles servent à démontrer la valeur des pipelines et à identifier les points d’amélioration :</p><p><strong>Mesures DevOps CI/CD</strong></p><p><strong>1. Fréquence de déploiement (Deployment Frequency)</strong></p><ul><li>Combien de fois tu déploies en prod (ou en environnements intermédiaires) par jour/semaine/mois.</li><li>Plus c’est fréquent → plus ton process est fluide.</li></ul><p><strong>2. Lead Time for Changes</strong></p><ul><li>Temps entre un commit (ou merge) et son déploiement en production.</li><li>Objectif : réduire ce temps → feedback plus rapide.</li></ul><p><strong>3. Mean Time to Recovery (MTTR)</strong></p><ul><li>Temps moyen pour restaurer le service après un incident.</li><li>Plus ton pipeline est automatisé, plus la restauration est rapide.</li></ul><p><strong>4. Change Failure Rate</strong></p><ul><li>% de déploiements qui causent une panne ou nécessitent un rollback/hotfix.</li><li>CI/CD avec tests automatisés fait baisser ce chiffre.</li></ul><p><strong>5. Temps d’exécution du pipeline</strong></p><ul><li>Durée moyenne d’un run complet (build → test → déploiement).</li><li>Un indicateur direct de l’efficacité de la chaîne.</li></ul><p><strong>6. Taux de réussite des pipelines</strong></p><ul><li>% de pipelines qui passent sans erreur.</li><li>Montre la stabilité et la fiabilité de l’intégration.</li></ul><p><strong>7. Couverture des tests automatisés</strong></p><ul><li>% de code couvert par les tests exécutés dans le pipeline.</li><li>Plus la couverture est élevée, plus la confiance dans les déploiements est forte.</li></ul><p><strong>8. Feedback time</strong></p><ul><li>Temps qu’un développeur attend pour savoir si son commit passe le pipeline (ex. tests unitaires rapides).</li><li>Doit être le plus court possible.</li></ul><p><strong>9. Utilisation des environnements</strong></p><ul><li>Taux d’occupation des environnements de test/staging.</li><li>Aide à détecter les goulots d’étranglement liés aux ressources.</li></ul><p><strong>10. Automatisation vs manuel</strong></p><ul><li>% de déploiements faits via pipeline vs manuellement.</li><li>Objectif → tendre vers 100% automatisé.</li></ul><p>⚡ Pour résumer, les <strong>4 metrics DORA</strong> (Deployment Frequency, Lead Time, MTTR, Change Failure Rate) sont la référence mondiale.<br> Les autres (temps de pipeline, couverture, feedback, taux de succès, etc.) complètent l’analyse.</p><p><strong>📊 Tableau des mesures CI/CD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*-rl0kafBihRc8f6TEV484g.jpeg" /></figure><p><strong>🔧 Comment intégrer les mesures CI/CD dans GitLab</strong></p><p><strong>1. Fréquence de déploiement</strong></p><ul><li>GitLab trace déjà les <strong>pipelines déployés</strong> et leurs dates.</li><li>Tu peux exporter via l’API GitLab (endpoint pipelines/jobs) et calculer combien de déploiements réussis tu as par jour/semaine.</li><li>Exemple : un <strong>job cron</strong> dans ton pipeline qui appelle l’API et enregistre la fréquence.</li></ul><p><strong>2. Lead Time for Changes</strong></p><ul><li>GitLab fournit le <strong>Value Stream Analytics</strong> (si activé) → calcule le temps entre commit → déploiement.</li><li>Sinon, tu peux capturer :</li><li>timestamp du commit (git log)</li><li>timestamp du déploiement (CI_PIPELINE_CREATED_AT et CI_JOB_STARTED_AT)</li><li>comparer les deux dans un script de reporting.</li></ul><p><strong>3. MTTR (Mean Time to Recovery)</strong></p><ul><li>Tu peux mesurer via :</li><li>le temps entre un job “rollback / fix” et l’incident détecté.</li><li>logs de monitoring (Prometheus, Grafana) reliés à GitLab → exporter la durée de l’incident.</li><li>Intégrable dans un pipeline post-mortem (job qui enregistre les temps de rétablissement).</li></ul><p><strong>4. Change Failure Rate</strong></p><ul><li>Facile : # jobs de déploiement échoués ÷ # jobs de déploiement totaux.</li><li>GitLab CI expose CI_JOB_STATUS.</li><li>Tu peux créer un <strong>job de reporting</strong> qui compte les échecs/succès et push dans une DB (ou Prometheus).</li></ul><p><strong>5. Durée du pipeline</strong></p><ul><li>Natif : chaque pipeline dans GitLab a un temps d’exécution (CI_PIPELINE_DURATION).</li><li>Tu peux exporter et tracer dans Grafana.</li></ul><p><strong>6. Taux de réussite du pipeline</strong></p><ul><li>Idem : calcul basé sur CI_PIPELINE_STATUS.</li><li>Script ou API GitLab → pourcentage de pipelines en succès.</li></ul><p><strong>7. Couverture des tests</strong></p><ul><li>GitLab supporte nativement la <strong>test coverage parsing</strong>.</li></ul><p>Tu ajoutes dans ton .gitlab-ci.yml :</p><pre>test:<br>  stage: test<br>  script:<br>    - mvn test<br>  coverage: &#39;/Total.*?([0-9]{1,3})%/&#39;</pre><ul><li>GitLab extrait automatiquement la couverture et l’affiche dans l’UI et l’API.</li></ul><p><strong>8. Feedback Time</strong></p><ul><li>Tu peux séparer ton pipeline en <strong>stages rapides</strong> (lint, unit tests légers).</li><li>GitLab donne la durée de chaque job → calcul automatique du temps avant feedback.</li></ul><p><strong>9. Automatisation des déploiements</strong></p><ul><li>Mesurable via le ratio de jobs de type deploy exécutés par pipeline.</li><li>Tu compares avec les déploiements manuels (bouton “play” dans GitLab).</li></ul><p><strong>10. Utilisation des environnements</strong></p><ul><li>GitLab gère les environnements (staging, production, etc.).</li><li>Tu peux suivre combien de temps chaque environnement est utilisé grâce aux <strong>environment dashboards</strong> ou en envoyant des logs à Prometheus.</li><li>Les <strong>metrics techniques</strong> (pipeline duration, coverage, success rate, fréquence) → disponibles directement via <strong>GitLab + API</strong>.</li><li>Les <strong>metrics DORA (Lead time, MTTR, Change Failure Rate)</strong> → nécessitent un <strong>mix GitLab + observabilité (Prometheus/Grafana/ELK)</strong>.</li></ul><p>Exemple .gitlab-ci.yml avec métriques CI/CD:</p><pre>stages:<br>  - build<br>  - test<br>  - deploy<br>  - metrics<br><br>variables:<br>  MAVEN_CLI_OPTS: &quot;-B -DskipTests=false&quot;<br><br># -------------------------<br># 1. BUILD<br># -------------------------<br>build:<br>  stage: build<br>  script:<br>    - echo &quot; Building the project...&quot;<br>    - mvn $MAVEN_CLI_OPTS clean package<br>  artifacts:<br>    paths:<br>      - target/*.jar<br><br># -------------------------<br># 2. TEST + COVERAGE<br># -------------------------<br>test:<br>  stage: test<br>  script:<br>    - echo &quot; Running tests...&quot;<br>    - mvn $MAVEN_CLI_OPTS test<br>  coverage: &#39;/Total.*?([0-9]{1,3})%/&#39;<br>  artifacts:<br>    reports:<br>      junit: target/surefire-reports/TEST-*.xml<br><br># -------------------------<br># 3. DEPLOY<br># -------------------------<br>deploy:<br>  stage: deploy<br>  script:<br>    - echo &quot;Deploying to staging...&quot;<br>    - ./scripts/deploy.sh staging<br>  environment:<br>    name: staging<br>    url: https://staging.example.com<br>  only:<br>    - main<br><br># -------------------------<br># 4. METRICS<br># -------------------------<br>metrics:<br>  stage: metrics<br>  script:<br>    - echo &quot;Collecting pipeline metrics...&quot;<br>    # Récupération de la durée du pipeline<br>    - echo &quot;{ \&quot;pipeline_duration\&quot;: \&quot;$CI_PIPELINE_DURATION\&quot; }&quot; &gt; metrics.json<br>    # Statut du pipeline<br>    - echo &quot;{ \&quot;pipeline_status\&quot;: \&quot;$CI_JOB_STATUS\&quot; }&quot; &gt;&gt; metrics.json<br>    # Timestamp début/fin<br>    - echo &quot;{ \&quot;started_at\&quot;: \&quot;$CI_PIPELINE_CREATED_AT\&quot;, \&quot;finished_at\&quot;: \&quot;$CI_JOB_STARTED_AT\&quot; }&quot; &gt;&gt; metrics.json<br>    # Nom du commit et auteur<br>    - echo &quot;{ \&quot;commit\&quot;: \&quot;$CI_COMMIT_SHORT_SHA\&quot;, \&quot;author\&quot;: \&quot;$GITLAB_USER_NAME\&quot; }&quot; &gt;&gt; metrics.json<br><br>    # Exemple Prometheus-like export<br>    - |<br>      echo &quot;# HELP ci_pipeline_duration_seconds Duration of the pipeline in seconds&quot; &gt; metrics.prom<br>      echo &quot;# TYPE ci_pipeline_duration_seconds gauge&quot; &gt;&gt; metrics.prom<br>      echo &quot;ci_pipeline_duration_seconds $CI_PIPELINE_DURATION&quot; &gt;&gt; metrics.prom<br><br>      echo &quot;# HELP ci_pipeline_status Status of the pipeline (0=failed,1=success)&quot; &gt;&gt; metrics.prom<br>      echo &quot;# TYPE ci_pipeline_status gauge&quot; &gt;&gt; metrics.prom<br>      if [ &quot;$CI_JOB_STATUS&quot; = &quot;success&quot; ]; then<br>        echo &quot;ci_pipeline_status 1&quot; &gt;&gt; metrics.prom<br>      else<br>        echo &quot;ci_pipeline_status 0&quot; &gt;&gt; metrics.prom<br>      fi<br><br>  artifacts:<br>    paths:<br>      - metrics.json<br>      - metrics.prom<br>  when: always</pre><p><strong>Coverage</strong> : GitLab parse automatiquement le rapport de couverture (coverage: ‘/regex/’).</p><p><strong>metrics job</strong> :</p><ul><li>Génère un fichier metrics.json → exploitable par script ou export API.</li><li>Génère un fichier metrics.prom → que tu peux exposer vers <strong>Prometheus</strong> pour Grafana.</li></ul><p><strong>Variables GitLab</strong> utilisées :</p><ul><li>$CI_PIPELINE_DURATION → durée du pipeline.</li><li>$CI_JOB_STATUS → statut du job/pipeline.</li><li>$CI_PIPELINE_CREATED_AT / $CI_JOB_STARTED_AT → timestamps pour calcul du Lead Time.</li><li>$GITLAB_USER_NAME → qui a lancé le pipeline.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7378c5910481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[list of 50 Java & Spring interview questions for CGI]]></title>
            <link>https://medium.com/@badrelkhalyly92/list-of-50-java-spring-interview-questions-for-cgi-e7b8d00a57d0?source=rss-9a2af0dd4196------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7b8d00a57d0</guid>
            <dc:creator><![CDATA[BADR EL KHALYLY]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 16:45:39 GMT</pubDate>
            <atom:updated>2025-09-25T16:45:39.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVhqRWaUNQM-9rvEE9iBbw.png" /></figure><p>Here’s a list of <strong>50 complicated Java &amp; Spring interview questions</strong> that dive deep into architecture, performance, concurrency, and frameworks.</p><p><strong>Java Core &amp; Advanced (1–20)</strong></p><ol><li>Explain the differences between the Java Memory Model (JMM) and the JVM runtime memory areas. How does volatile interact with the JMM?</li><li>How does the Just-In-Time (JIT) compiler optimize bytecode execution? Give examples of escape analysis.</li><li>What are biased locking, lightweight locking, and heavyweight locking in JVM?</li><li>How do you diagnose and resolve memory leaks in a large-scale Java application?</li><li>What are the trade-offs between using CompletableFuture, ExecutorService, and Project Loom’s virtual threads?</li><li>How does ForkJoinPool differ from a cached thread pool in task scheduling?</li><li>Explain the role of sun.misc.Unsafe. Why is it used in frameworks like Netty or Kafka?</li><li>What is the difference between WeakReference, SoftReference, PhantomReference, and StrongReference?</li><li>How does Java handle false sharing in multi-threaded applications?</li><li>Can you explain class loading delegation and how to override it in a custom classloader?</li><li>What are some pitfalls of using Java Streams in performance-critical systems?</li><li>How does Garbage Collection tuning differ between G1GC, ZGC, and Shenandoah?</li><li>Explain the concept of thread contention and lock striping.</li><li>What is the difference between Java’s intrinsic locks (synchronized) and explicit locks (ReentrantLock)?</li><li>How would you debug a java.lang.OutOfMemoryError: Metaspace issue?</li><li>What are the internals of the String pool and its impact on performance?</li><li>How does Java’s AtomicInteger ensure atomicity under the hood?</li><li>Compare immutable object design in Java with @Value from Lombok. What pitfalls might arise?</li><li>Why is reflection slow, and how can frameworks optimize reflective calls?</li><li>How do you handle high-throughput message processing with backpressure in Java?</li></ol><p><strong>Spring Framework &amp; Spring Boot (21–35)</strong></p><ol><li>How does Spring resolve circular dependencies in beans?</li><li>Explain the lifecycle of a Spring bean from instantiation to destruction.</li><li>What is the difference between BeanFactoryPostProcessor and BeanPostProcessor?</li><li>How does Spring Boot auto-configuration work internally?</li><li>Compare @Transactional propagation types and their impact in distributed systems.</li><li>Explain how Spring manages thread safety in singleton beans.</li><li>How does Spring AOP handle method-level interception at runtime?</li><li>What are the differences between proxy-based AOP and AspectJ weaving?</li><li>How does Spring Security internally validate JWT tokens?</li><li>What is the difference between reactive programming in Spring WebFlux and imperative programming in Spring MVC?</li><li>How does Spring Data JPA optimize query generation?</li><li>Explain how caching abstraction in Spring works with Redis.</li><li>How does Spring Boot manage externalized configuration across profiles and environments?</li><li>How would you implement a custom Spring Boot starter?</li><li>What are some potential pitfalls when using Spring Cloud Config in a microservices ecosystem?</li></ol><p><strong>Microservices, Cloud, &amp; DevOps (36–45)</strong></p><ol><li>How would you design a resilient microservice architecture with Spring Cloud?</li><li>Compare synchronous REST communication vs. asynchronous messaging (Kafka, RabbitMQ) in microservices.</li><li>How does service discovery work in Spring Cloud with Netflix Eureka?</li><li>What are the challenges of distributed transactions in microservices, and how does the Saga pattern solve them?</li><li>How do you implement rate limiting in Spring Boot APIs?</li><li>What’s the difference between API Gateway and Load Balancer in microservices?</li><li>How would you secure inter-service communication using mTLS in Spring?</li><li>Explain how you would integrate Kubernetes ConfigMaps and Secrets with a Spring Boot application.</li><li>How do you use distributed tracing with Sleuth and Zipkin in Spring Cloud?</li><li>What are the best practices for zero-downtime deployments in a Spring Boot app on Kubernetes?</li></ol><p><strong>Database, Security, and Performance (46–50)</strong></p><ol><li>How does Hibernate manage the 1st level and 2nd level caches?</li><li>What’s the difference between pessimistic locking and optimistic locking in JPA?</li><li>How do you implement row-level security in Spring Data applications?</li><li>How do you handle N+1 query problems in Hibernate?</li><li>How do you tune a Spring Boot application to handle 100k+ requests per second?</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7b8d00a57d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM Java Interview Questions]]></title>
            <link>https://medium.com/@badrelkhalyly92/ibm-java-interview-questions-5307b958e3a5?source=rss-9a2af0dd4196------2</link>
            <guid isPermaLink="false">https://medium.com/p/5307b958e3a5</guid>
            <dc:creator><![CDATA[BADR EL KHALYLY]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 09:00:30 GMT</pubDate>
            <atom:updated>2025-09-25T09:08:10.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSl2_BTr5XLZc82ePbo1HA.png" /></figure><h3>1. Core Java &amp; Concurrency</h3><ul><li>How does the <strong>Java Memory Model (JMM)</strong> ensure visibility and ordering of operations in multithreaded code? Give an example where volatile alone is insufficient.</li><li>Explain the differences between <strong>synchronized</strong>, <strong>ReentrantLock</strong>, and <strong>StampedLock</strong>. When would you choose each?</li><li>What is <strong>false sharing</strong> in concurrent programming? How can it affect Java performance, and how do you prevent it?</li><li>How does <strong>ForkJoinPool</strong> differ from a regular thread pool in terms of task scheduling and work-stealing?</li><li>Describe a situation where a <strong>deadlock</strong> might occur in Java. How would you detect and fix it at runtime?</li></ul><h3>2. JVM &amp; Performance</h3><ul><li>Explain the differences between the <strong>Parallel GC, G1 GC, and ZGC</strong>. In which scenarios is each optimal?</li><li>How does <strong>escape analysis</strong> work in the JVM, and how does it enable <strong>stack allocation</strong>?</li><li>What’s the impact of <strong>class loading delegation model</strong> (parent-first) in custom class loaders? When would you override it?</li><li>Explain <strong>biased locking</strong> and <strong>lock coarsening</strong> optimizations in JVM.</li><li>How would you troubleshoot <strong>high CPU usage</strong> in a Java process? Walk through tools like jstack, jmap, and flight recorder.</li></ul><h3>3. Spring &amp; Microservices</h3><ul><li>Explain how <strong>Spring handles circular dependencies</strong>. What happens under the hood with @Autowired and proxies?</li><li>In a microservice using Spring Cloud, what are the trade-offs between <strong>Eureka/Consul</strong> for service discovery vs <strong>Kubernetes-native DNS</strong>?</li><li>How would you handle <strong>distributed transactions</strong> across multiple microservices without using 2PC? Discuss <strong>Sagas</strong> vs <strong>eventual consistency</strong>.</li><li>How does <strong>Spring Security</strong> handle stateless authentication with JWT, and what are the common pitfalls (token replay, expiration, blacklisting)?</li><li>In Spring Boot, how does the <strong>auto-configuration mechanism</strong> work under the hood?</li></ul><h3>4. Database &amp; Persistence</h3><ul><li>What are the differences between <strong>optimistic locking</strong> and <strong>pessimistic locking</strong> in JPA/Hibernate? When can each cause issues in production?</li><li>How does <strong>Hibernate’s first-level and second-level cache</strong> differ? How would you tune caching for a high-traffic microservice?</li><li>How would you design an efficient query when dealing with <strong>billions of rows</strong> in PostgreSQL? Which strategies (partitioning, sharding, indexes) would you consider?</li><li>Explain <strong>N+1 query problem</strong> in ORM frameworks. How do you detect and prevent it in Spring Data JPA?</li></ul><h3>5. System Design &amp; Cloud-Native</h3><ul><li>How do you ensure <strong>idempotency</strong> in REST APIs? Provide both <strong>application-level</strong> and <strong>infrastructure-level</strong> strategies.</li><li>How would you design a <strong>multi-tenant SaaS application</strong> in Java Spring Boot? Consider isolation at DB, schema, and row levels.</li><li>How do you handle <strong>backpressure</strong> in event-driven systems using Kafka or Reactor?</li><li>Explain the CAP theorem. In which category would you place <strong>Kafka, Cassandra, and PostgreSQL</strong>?</li><li>How would you design a <strong>global-scale rate limiting system</strong> for APIs in Java, ensuring fairness and performance?</li></ul><h3>6. Security &amp; Advanced Topics</h3><ul><li>Explain how <strong>CSRF protection</strong> works in Spring Security. Why is it unnecessary for stateless APIs using JWT?</li><li>How would you integrate <strong>OIDC (OpenID Connect)</strong> authentication in a Spring microservice ecosystem with multiple clients?</li><li>What are the trade-offs between <strong>symmetric vs asymmetric encryption</strong> for securing communication between services?</li><li>Explain a real-world scenario where <strong>OAuth 2.0 misconfiguration</strong> could lead to a vulnerability. How would you prevent it?</li><li>How would you implement <strong>field-level encryption</strong> for sensitive data in a Spring Boot + JPA app?</li></ul><h3>7. Advanced Concurrency &amp; Reactive Programming</h3><ul><li>What’s the difference between <strong>CompletableFuture</strong>, <strong>Project Reactor (Mono/Flux)</strong>, and <strong>RxJava</strong>? In which scenarios would you prefer each?</li><li>How would you handle <strong>thread starvation</strong> in a system that uses a shared thread pool for blocking and non-blocking tasks?</li><li>Explain how <strong>structured concurrency</strong> could improve Java’s concurrency model (related to Project Loom).</li><li>What are the differences between <strong>hot</strong> and <strong>cold publishers</strong> in reactive streams, and why does it matter for backpressure?</li></ul><h3>8. Distributed Systems &amp; Networking</h3><ul><li>How would you implement a <strong>circuit breaker</strong> pattern in Java (e.g., with Resilience4j)? How is it different from a retry pattern?</li><li>Explain <strong>leader election</strong> in distributed systems. How could you implement it in Java with Zookeeper or etcd?</li><li>What are the pitfalls of using <strong>UUIDs as database keys</strong> in a high-scale microservice? What alternatives exist (snowflake IDs, ULIDs)?</li><li>How do you ensure <strong>consistency</strong> between a relational DB and Kafka events when both are updated in the same transaction?</li></ul><h3>9. Garbage Collection &amp; Memory</h3><ul><li>How do <strong>soft, weak, and phantom references</strong> differ in Java? Give a use case for each.</li><li>How does the <strong>Metaspace</strong> differ from PermGen in the JVM? What issues did it solve?</li><li>Imagine you have a memory leak in a Spring Boot app. How would you diagnose and fix it using <strong>MAT (Memory Analyzer Tool)</strong>?</li><li>Why could frequent <strong>minor GCs</strong> affect application latency even if heap usage is low?</li></ul><h3>10. Spring Deep-Dive</h3><ul><li>How does <strong>Spring AOP</strong> work internally with proxies? What are the limitations with final classes and methods?</li><li>Compare <strong>BeanFactoryPostProcessor</strong> vs <strong>BeanPostProcessor</strong>. When would you use each?</li><li>How does <strong>Spring Boot DevTools</strong> restart mechanism work under the hood? Why does it use two classloaders?</li><li>In Spring Cloud Config, how would you implement <strong>dynamic property refresh</strong> without restarting services?</li></ul><h3>11. APIs &amp; Integration</h3><ul><li>What are the differences between <strong>SOAP WS-Security</strong> and <strong>REST OAuth 2.0</strong> in terms of message-level vs transport-level security?</li><li>How do you implement <strong>content negotiation</strong> in Spring MVC to return both XML and JSON from the same endpoint?</li><li>Explain how you’d secure an API that must be <strong>publicly available</strong> but still enforce <strong>rate limiting, abuse detection, and quota management</strong>.</li><li>How does <strong>Feign Client error decoding</strong> work? How would you customize it for XML-based services?</li></ul><h3>12. Testing &amp; CI/CD</h3><ul><li>How do you test <strong>asynchronous code</strong> in Java? Compare CompletableFuture, StepVerifier (Reactor), and Awaitility.</li><li>How would you test a <strong>Spring Boot microservice</strong> that consumes Kafka topics without spinning up a real Kafka cluster?</li><li>What’s the difference between <strong>integration testing</strong> and <strong>contract testing</strong> in microservices? How would you set them up in a CI pipeline?</li><li>How do you simulate <strong>chaos testing</strong> (service crashes, latency injection) in a Java/Spring ecosystem?</li></ul><h3>13. Cloud &amp; Deployment</h3><ul><li>Explain how you’d design a <strong>12-factor app</strong> using Java Spring Boot. Which factors are the hardest to enforce in legacy systems?</li><li>How do you optimize <strong>JVM memory settings</strong> (Xmx, Xms, GC tuning) for a Spring Boot app running in Kubernetes?</li><li>What are the trade-offs between running <strong>fat jars vs layered jars</strong> in containers?</li><li>How would you implement <strong>blue-green deployments</strong> for a stateful Spring Boot app?</li></ul><h3>14. Security Advanced</h3><ul><li>How does <strong>mutual TLS (mTLS)</strong> work in service-to-service communication? How would you implement it in Spring Boot?</li><li>What’s the risk of using <strong>JWT without proper expiration and rotation</strong>? How do you mitigate replay attacks?</li><li>Explain how <strong>CORS misconfiguration</strong> can lead to security issues in a Spring Boot REST API.</li><li>How would you store <strong>secrets</strong> (like DB passwords) securely in a Spring Boot app running on Kubernetes?</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5307b958e3a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>